Update Tag
PUT /api/v1/tags/:id
Updates an existing tag. Only provided fields are updated.
Path Parameters
| Parameter | Type | Description |
|---|
id | string | The tag's unique identifier |
Request Body
| Field | Type | Description |
|---|
name | string | New tag name (must be unique within the organization) |
description | string | Updated description |
color | string | Hex 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
| Code | Description |
|---|
400 | Validation error (empty name, invalid color, duplicate name, no fields) |
401 | Invalid or missing API credentials |
403 | API key lacks tags:edit permission |
404 | Tag not found |