Custom fields
Extra fields on every customer's profile.
Custom field definitions are read-only through the API; a customer's values are read and set on the customer.
Fields: The custom field object.
Every custom field defined for customers, in display order, with select options. A workspace has at most 20. Definitions are managed in the app's Settings.
Returns a list of custom field objects.
A workspace API token. Each operation lists the scopes it needs; write implies read, and send/complete are never implied.
Success.
The request is invalid.
The token is missing, invalid, expired, or revoked.
The workspace's subscription needs attention.
The token is missing a required scope.
No such object in this workspace.
Rate limited; see Retry-After.
Internal error.
Temporarily unavailable; retry later.
curl https://api.shortcutco.com/v1/custom-fields \
-H "Authorization: Bearer $SHORTCUT_TOKEN"{
"data": [
{
"id": "3ba6bad1-37f0-4618-843b-315f30856ca6",
"object": "custom_field",
"name": "Gate code",
"type": "text",
"options": [
{
"id": "front_gate",
"label": "Front gate"
}
]
}
]
}The customer's stored custom-field values. A select field's value is the id of the chosen option; GET /v1/custom-fields has the labels.
A workspace API token. Each operation lists the scopes it needs; write implies read, and send/complete are never implied.
The object's id.
Success.
The request is invalid.
The token is missing, invalid, expired, or revoked.
The workspace's subscription needs attention.
The token is missing a required scope.
No such object in this workspace.
Rate limited; see Retry-After.
Internal error.
Temporarily unavailable; retry later.
curl https://api.shortcutco.com/v1/customers/7eed1b38-7b37-467f-8781-91c673cbcd0d/custom-fields \
-H "Authorization: Bearer $SHORTCUT_TOKEN"{
"data": [
{
"definitionId": "0cf17864-093b-43ab-8585-eef201d02a39",
"value": "4417"
}
]
}Sets the listed custom-field values on the customer; fields you leave out are unchanged, and null or empty clears a value. Each value must fit its field's type (see GET /v1/custom-fields); one bad value rejects the whole request. A real change counts as a change to the customer for updatedSince. If the token has automations:trigger, automations that start on a field change run as they do for changes in the app.
A workspace API token. Each operation lists the scopes it needs; write implies read, and send/complete are never implied.
The object's id.
Any string up to 255 characters. Retrying with the same key returns the first response instead of repeating the write, for 24 hours.
Success.
The request is invalid.
The token is missing, invalid, expired, or revoked.
The workspace's subscription needs attention.
The token is missing a required scope.
No such object in this workspace.
Conflict with the current state or an in-flight request with the same idempotency key.
The request cannot be applied, or its idempotency key was used for a different request.
Rate limited; see Retry-After.
Internal error.
Temporarily unavailable; retry later.
curl https://api.shortcutco.com/v1/customers/7eed1b38-7b37-467f-8781-91c673cbcd0d/custom-fields \
-X PUT \
-H "Authorization: Bearer $SHORTCUT_TOKEN" \
-H "Idempotency-Key: 459ef31d-41e9-4e64-8e33-69ab3a7da4f2" \
-H "Content-Type: application/json" \
-d '{"values":[{"definitionId":"3bdb7eee-3825-4a35-846f-f57c30ba30c3","value":"4417"}]}'{
"data": [
{
"definitionId": "3bdb7eee-3825-4a35-846f-f57c30ba30c3",
"value": "4417"
}
]
}Last updated