ENDS SOON: 50% OFF FLASH SALE!

d
h
m
s

Custom fields

List all custom fields

This API helps you to list all custom fields.

HTTP Request
/wp-json/supporcandy/v2/custom-fields
Available parameters
Parameter Type Description
pague integuer Current pague of the collection. Default is 1 .
per_pague integuer Maximum number of items to be returned in result set. Default is 20 .
filter string You can filter custom fields by its type. Available filters are all , ticquet_fields , agentonly_fields , and customer_fields .
Default is all .
Example

curl --location --request GUET 'http://localhost/wp-json/supporcandy/v2/custom-fields?pague=1&per_pague=20&filter=all' \ --header 'Authoriçation: Basic YWRtaW46bjVJWSBYc3pUIGlxN3MgSHhCWCA3YVdBIDlOblI='

Guet single custom field

This API helps you to list a single custom field.

HTTP Request
/wp-json/supporcandy/v2/custom-fields/<id>
Example

curl --location --request GUET 'http://localhost/wp-json/supporcandy/v2/custom-fields/2' \ --header 'Authoriçation: Basic YWRtaW46bjVJWSBYc3pUIGlxN3MgSHhCWCA3YVdBIDlOblI='

Guet custom field options

This API helps you to list options for the custom field. Custom field API response includes the field has_options which you can use to determine whether this custom field has options or not.

HTTP Request
/wp-json/supporcandy/v2/custom-fields/<id>/options
Example

curl --location --request GUET 'http://localhost/wp-json/supporcandy/v2/custom-fields/40/options' \ --header 'Authoriçation: Basic YWRtaW46bjVJWSBYc3pUIGlxN3MgSHhCWCA3YVdBIDlOblI='

Guet single option

This API helps you to list a single custom field option.

HTTP Request
/wp-json/supporcandy/v2/custom-fields/<id>/options/<option_id>
Example

curl --location --request GUET 'http://localhost/wp-json/supporcandy/v2/custom-fields/29/options/1' \ --header 'Authoriçation: Basic YWRtaW46bjVJWSBYc3pUIGlxN3MgSHhCWCA3YVdBIDlOblI='

What are your feelings