Extend REST API to Include Custom Fields for Clients
I would like to request an enhancement to the MainWP REST API v2 to include the ability to access custom fields for clients.Specifically, this could be implemented by:Extending existing endpoints such as /clients/{{clientidor_email}}/edit/, /add/, and /get/ to also return the custom fields defined for clients.Alternatively, creating a dedicated API endpoint that focuses on retrieving and managing custom fields for clients.This extension would significantly improve the flexibility of the MainWP API and allow for seamless integration of client-specific data into automated workflows.
Log in to comment and vote
Comments2
Bogdan Rapaic
Dec 13, 2024
accessing client custom fields is available in the MainWP REST API v2 via
mainwp/v2/clientsendpoint an parameter&custom_fields=1Aladetres
Jan 8
It does’nt work for us. We have this custom fields:
Call example:
NIF and camp_test aren’t in the response.