Skip to content

Create a common (tenant-wide) tag

POST
/tags/common
curl --request POST \
--url https://projects.work.optidata.cloud/api/tags/common \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "urgent", "color": "#ef4444" }'

Creates a tag with no board scope — usable on every board of the tenant.

Media typeapplication/json
object
name
required
string
>= 2 characters <= 40 characters
color
required

Hex color.

string
description
string | null
>= 3 characters <= 250 characters
Example
{
"name": "urgent",
"color": "#ef4444"
}

The created tag (board_id null).

Media typeapplication/json
object
tag

A label. board_id null means a common (tenant-wide) tag.

object
id
integer
board_id
integer | null
name
string
>= 2 characters <= 40 characters
description
string | null
>= 3 characters <= 250 characters
color

Hex color (e.g. #52eb00).

string
created_at
string format: date-time
updated_at
string format: date-time
tag_list_item_html

Server-rendered HTML snippet for the Optiwork web client. Safe to ignore.

string
Examplegenerated
{
"tag": {
"id": 1,
"board_id": 1,
"name": "example",
"description": "example",
"color": "example",
"created_at": "2026-04-15T12:00:00Z",
"updated_at": "2026-04-15T12:00:00Z"
},
"tag_list_item_html": "example"
}

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."
]
}
}