Update Tag

PUT /api/v1/tags/:id

Updates an existing tag. Only provided fields are updated.

Path Parameters

ParameterTypeDescription
idstringThe tag's unique identifier

Request Body

FieldTypeDescription
namestringNew tag name (must be unique within the organization)
descriptionstringUpdated description
colorstringHex color code (e.g., #e3342f)

At least one field must be provided.

Example Request

curl -X PUT "https://orchestrator.assemblyline.sh/api/v1/tags/tag_abc123" \
  -H "api-key: al_xxxxxxxxxxxx" \
  -H "api-secret: xxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "color": "#e3342f",
    "description": "High-priority monthly stations"
  }'

Response

{
  "data": {
    "id": "tag_abc123",
    "name": "monthly",
    "description": "High-priority monthly stations",
    "color": "#e3342f",
    "created_at": "2024-01-10T08:00:00Z"
  }
}

Errors

CodeDescription
400Validation error (empty name, invalid color, duplicate name, no fields)
401Invalid or missing API credentials
403API key lacks tags:edit permission
404Tag not found