Skip to main content
POST
/
v1
/
assets
/
{id}
/
labels
Error
A valid request URL is required to generate request examples
{
  "label_id": "label_d8aad64dib2c7m3ae7k0",
  "name": "q2-launches"
}

Documentation Index

Fetch the complete documentation index at: https://dev.chief.bot/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-API-Key
string
header
required

Personal Access Token, sent verbatim as pat_<32 chars>. PATs are minted from the Chief settings UI.

Headers

X-Project-Id
string
required

Project identifier scoping the request. Required on every project-scoped public endpoint. Missing or malformed values respond with HTTP 400 and code publicapi.tenancy.project.missing.

Pattern: ^project_[a-z0-9]{20}$

Path Parameters

id
string
required

Asset identifier returned by POST /v1/assets.

Pattern: ^asset_[a-z0-9]{20}$

Body

application/json

Attach a label to an asset by name. If no label with this name exists in the project, it is auto-created as a bare label (no color/icon) and then attached. To set display metadata up front, mint the label first via POST /v1/labels.

label_name
string
required
Required string length: 2 - 255

Response

Label attached (or already attached).

label_id
string
required
Pattern: ^label_[a-z0-9]{20}$
name
string
required