Skip to main content
Create a global field

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.

Body

application/json
name
string
required

Name of the global field.

Minimum string length: 3
Pattern: ^[A-Z][A-Z_]+$
Example:

"EXPIRATION"

type
enum<string>
required

Type of the global field.

Available options:
text,
keyword,
list,
select_user,
integer,
decimal,
date,
toggle,
checkbox,
radio
format
string

Pattern a date value is written and parsed in. It carries meaning only for a date-typed field, and it is stored as given - the platform neither restricts the pattern nor interprets it, so it has to be one the client knows how to apply.

Example:

"d.MM.yyyy"

listCanHaveMultipleValues
boolean

Whether the field is permitted to hold several values at once. It only grants the permission - whether a given document form offers a multiple choice is settled by each metadata definition that uses the field.

listKey
string

Field of that enumeration whose value a document ends up storing.

Example:

"priority"

listName
string

Enumeration the offered values are taken from, addressed by its name.

Example:

"priorities"

validation
object

Rules a value has to satisfy. They are expanded into the rule list the field carries afterwards, which is the form a client reads them back in.

values
string[]

The choices a value may be picked from. It is sent as an array of strings and comes back on a read as a JSON-encoded array, so a client has to parse it there.

Response

The global field was created.

status
string

Outcome of the operation, reported as a status type constant.

Example:

"SUCCESS"