Get company field options
get/api/v1/companies/fields/{fieldId}/optionsRetrieves a list of all field options associated with a specified field in the company module, identified by its field ID.
Code snippet
curl -X 'GET' \
'https://{yourdomain}/api/v1/companies/fields/{fieldId}/options' \
-H 'accept: text/plain; x-api-version=1.0' \
-H 'x-api-key: {your API key}'
Path parameters
| fieldIdintegerRequired | Specifies the unique identifier of the field whose option values should be retrieved. |
Query parameters
| searchstring | The search query parameter is a string used to filter the field option values by a matching name. By providing a value for this parameter, the API will return only those entries where the name field matches the given search string. |
| includeInactiveboolean | Specifies whether to include inactive field options in the response. |
Example response
200 Success
{
"data": [
{
"id": 139612,
"value": "US",
"isActive": true
},
{
"id": 139613,
"value": "UK",
"isActive": true
}
]
}