Skip to main content
Add an enumeration record

Authorizations

token
string
query
required

Standard authorization for most API calls. This token identifies the logged-in user and their permissions. It is obtained either as a temporary token after a successful login or as a long-term API key.

Path Parameters

name
string
required

Name of the enumeration definition, unique within the tenant and used as its identifier wherever the enumeration is referenced.

Required string length: 1 - 100
Pattern: ^[a-z0-9_]+$
Example:

"priorities"

Body

application/json
data
object
required

Values of the new record, keyed by the field names the enumeration declares. Keys it does not declare are dropped, and every field it names as unique has to carry a value. A file or image field takes either the hash of an already uploaded file or the content inline as base64, which the platform then stores as a file of its own.

Example:
__order
number

Position the record should take in the enumeration's manual ordering, counted from one. The whole enumeration is renumbered afterwards, so a position past the end simply puts the record last. Left out, the record stays out of the ordering.

Example:

3

Response

Returns the identifier of the new record.

id
string

Value the request produced: the identifier of the object it created or acted upon, or - on the endpoints that issue one - the token it granted.

Example:

"e58cc1acbba3cd8056ce6adb44d46a11a113170e884509c179701270b915b59b"