Skip to main content
POST
/
api
/
data-platform
/
tags
Create a new tag
curl --request POST \
  --url https://app.solya.app/api/data-platform/tags \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "color": "#e53935",
  "description": "Applied when stock coverage drops below 2 weeks",
  "name": "Low stock",
  "organizationId": "org-uuid-1",
  "type": "DATA"
}
'
{
  "data": {
    "createdAt": "2023-11-07T05:31:56Z",
    "id": "<string>",
    "name": "<string>",
    "organizationId": "<string>",
    "color": "<string>",
    "description": "<string>",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Static internal-ops token used by the data platform and internal cron jobs (e.g. zombie-run sweep). Validated via requireBearerToken inside the handler against a service-specific environment variable.

Body

application/json
name
string
required

Human-readable tag name

Minimum string length: 1
organizationId
string
required

Organization ID the tag belongs to

Minimum string length: 1
type
enum<string>
required

Tag kind: DATA (auto-assigned by rules), BUSINESS (manually classified), or MIXED

Available options:
DATA,
BUSINESS,
MIXED
color
string | null

Optional hex color code for UI display of the tag

description
string | null

Optional free-text description of the tag's purpose

Response

Successful response

data
object
required
success
enum<boolean>
required
Available options:
true