Skip to content

Create a global custom field definition

POST
/custom-fields/definitions/global
curl --request POST \
--url https://projects.work.optidata.cloud/api/custom-fields/definitions/global \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "Cost center", "type": "text", "config": { "multiline": false, "max_length": 500 } }'

Defines a tenant-wide custom field, available on all boards. name must be unique among global definitions. Restricted to administrators.

Media typeapplication/json
object
name
required

Unique within the board (or among global definitions).

string
>= 1 characters <= 60 characters
type
required
string
Allowed values: text number select checkbox date person
description
string | null
<= 250 characters
config

Type-specific configuration; validated against the chosen type.

object | null
is_required
boolean
Example
{
"name": "Cost center",
"type": "text",
"config": {
"multiline": false,
"max_length": 500
}
}

The created definition.

Media typeapplication/json

Definition of a custom field. board_id null (and is_global true) means tenant-wide.

object
id
integer
board_id
integer | null
name
string
>= 1 characters <= 60 characters
type
string
Allowed values: text number select checkbox date person
description
string | null
<= 250 characters
config

Type-specific configuration. Examples — text: {multiline, max_length, placeholder, default_value}; select: {options: [{id, label, color}]}; checkbox: {default_value}.

object | null
order
integer
is_required

Required fields block card interactions (comments, files, timers) until filled.

boolean
is_active
boolean
is_global
boolean
created_at
string format: date-time
updated_at
string format: date-time
deleted_at
string | null format: date-time
Example
{
"type": "text"
}

Missing, invalid or expired bearer passport.

Media typeapplication/json
object
error
string
Example
{
"error": "JWT passport exception: Missing bearer token in request"
}

The authenticated user lacks the required board permission.

Media typeapplication/json
object
message
string
Example
{
"message": "This action is unauthorized."
}

Validation failed.

Media typeapplication/json
object
message

First validation error message.

string
errors

Map of field name → list of error messages.

object
key
additional properties
Array<string>
Example
{
"message": "The name field is required.",
"errors": {
"name": [
"The name field is required."
]
}
}