Skip to navigation

Add Custom Field

Adds a custom staff profile field, such as “Shirt Size”. Shared rules: see Writing data.

  • The body is closed: an unknown field is refused with 400 "Unknown field." Counts toward your write budget.
  • name is required, at most 30 characters, and must be unique in the company: 400 on name, “A custom field with this name already exists.” Repeating the same request is harmless.
  • A company can have a limited number of custom fields: past it, 400 on name, “You cannot add more than N custom fields.”
  • The field starts empty for every staff member. There is no delete.

Authentication

AuthorizationApi-Key

Format: “Api-Key {api-key}”

Request

This endpoint expects an object.
namestringRequired1-30 characters
Field name. Unique in the company.

Response

The custom field was added.
messagestring
statusboolean
dataobject

Errors

400
Bad Request Error
403
Forbidden Error