Allowed Types
Custom property definitions ensure that a custom property is consistent over all entities of that type. Using an inconsistent data type will result in aHTTP 400: Bad Request
.
An Employee can have custom properties of the following types:
number
: Must be an integer or float (without double quotes)text
: Must be an empty or non-empty stringboolean
: Must be a Boolean value true or false (without double quotes)datetime
: Must be an ISO8601-formatted datetime string (supported formats:["%Y-%m-%dT%H:%M:%S.%f", "%Y-%m-%d"]
).list[text]
: Must be a list of strings
Example
If you want for example to indicate that an Employee is a freelancer, you can create a Boolean custom property definitionfreelancer
.
/employees/custom_properties
. For more details on
how to do this, please head over to the API Reference.