Custom fields are used to record information that is not covered by the the default employee and contractor profile fields. Use the custom fields API to retrieve any employee custom fields, contractor organization custom fields, and contractor member custom fields.
See how to update custom fields in employee or contractor profiles.
Learn more about custom fields in the OnLocation Help Center.
Retrieves a list of all custom fields filtered by the parameter provided: employees, contractor organizations, or contractor members.
A comma separated list of tag:value search parameters, a colon separator performs an exact match, a percent separator performs a starts-with search and greater/less than search number/date ranges.
The endpoint is limited to a maximum of 1000 records.
Each custom field contains a value pair, which consists of the field ID as the key and a string representation as the value. As custom fields contain a range of data types, the API responds with a JSON-string representation for nested data.
The fields that contain nested data are:
List of custom field elements
Returned if the account does not have access to custom fields
Resource not found.
curl -i -X GET \ 'https://api.whosonlocation.com/v1/customfield/element/:element_type?order=string&limit=0&page=0'
[- {
- "id": 741,
- "created": "2021-11-25T12:17:27+13:00",
- "modified": "2021-11-27T12:17:27+13:00",
- "cf_tab_id": 89,
- "is_visible": true,
- "is_mandatory": true,
- "is_unique": true,
- "title": "Checkbox field",
- "config": [
- null
], - "created_by": 823431,
- "modified_by": 823431,
- "element_type": "checkbox"
}
]