API reference
Customisation API
2 operations for customisation. Each one names the scope your API key needs.
Scopes used here: platform.custom_field.manage
List the custom field definitions for one object type
GET /custom-fields
Scope: platform.custom_field.manage
Parameters
| Name | In | Description |
|---|---|---|
objectType required | query | e.g. employee, candidate. |
cursor | query | Opaque cursor from a previous response's nextCursor. |
limit | query | Page size, 1-200. Defaults to 50. |
Response 200
| Field | Type | Notes |
|---|---|---|
data | array of object required | |
data[].id | string (uuid) required | |
data[].objectType | string required | |
data[].key | string required | |
data[].label | string required | |
data[].type | string required | |
nextCursor | string, nullable required | Opaque. Pass back as ?cursor= for the next page; null on the last page. |
Errors: 400 · 401 · 403 · 404 · 422 · 429
(error format)
curl -s 'https://<your-company>.<app-domain>/api/v1/custom-fields' \
-H 'Authorization: Bearer YOUR_API_KEY' Define a custom field
POST /custom-fields
Scope: platform.custom_field.manage
Headers: Idempotency-Key
(see idempotency)
Request body
| Field | Type | Notes |
|---|---|---|
objectType | string required |
One of: employee , candidate , requisition , job , expense_claim , asset , ticket , project , legal_entity |
key | string required | |
label | string required | |
type | string required |
One of: text , number , date , select , multiselect , boolean , user , employee , file , url |
options | array of string, nullable | |
required | boolean | |
visibleToRoles | array of string | |
editableByRoles | array of string | |
section | string, nullable | |
sort | integer | |
isSensitive | boolean | |
visibility | string, nullable |
One of: hr_only , employee_visible , employee_editable |
includeInExport | boolean | |
includeInLetters | boolean |
Response 201
| Field | Type | Notes |
|---|---|---|
id | string (uuid) required | |
objectType | string required | |
key | string required | |
label | string required | |
type | string required |
Errors: 400 · 401 · 403 · 404 · 422 · 429
(error format)
curl -s -X POST 'https://<your-company>.<app-domain>/api/v1/custom-fields' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: <a unique value>' \
--data '{ … }'