Create tags
Writes require a UUID Idempotency-Key. Retry the same operation with the same key, body and etag. Results are retained for 30 days; reconcile the outcome before retrying later. Legacy timestamp:UUID keys remain accepted.
Parameters
Idempotency-Key
header · Required
Writes require a UUID Idempotency-Key. Retry the same operation with the same key, body and etag. Results are retained for 30 days; reconcile the outcome before retrying later. Legacy timestamp:UUID keys remain accepted.
Type: string
Complete JSON Schema
Request body
Required
application/json
Type: object
| Field | Type | Required | Description and constraints |
|---|---|---|---|
| name | string | Yes | Name {"minLength":1,"maxLength":300} |
| parentId | string | null | No | Parent tag ID, or null for a root tag |
| parentId (anyOf 1) | string | No | {"minLength":1,"maxLength":512} |
| parentId (anyOf 2) | null | No | |
| archiveTime | string | null | No | Archive timestamp; null means active |
| archiveTime (anyOf 1) | string | No | {"format":"date-time"} |
| archiveTime (anyOf 2) | null | No |
Complete JSON Schema
Request example
Replace path and request parameters with actual values. For requests with a body, save it as request.json using the schema above.
Responses
201
Successful response; status depends on the operation result.
application/json
Type: object
| Field | Type | Required | Description and constraints |
|---|---|---|---|
| id | string | Yes | Resource, job or operation identifier |
| version | string | Yes | Version as a decimal string; do not convert to a floating-point number {"pattern":"^(0|[1-9][0-9]*)$"} |
| etag | string | Yes | Concurrency tag; preserve quotes when sending If-Match |
| updatedAt | string | Yes | Last server update timestamp |
| operationId | string | No | Request receipt identifier; no status polling is needed |
| deletedAt | string | No | Deletion timestamp |
| name | string | null | No | Name |
| name (anyOf 1) | string | No | |
| name (anyOf 2) | null | No | |
| parentId | string | null | No | Parent tag ID, or null for a root tag |
| parentId (anyOf 1) | string | No | |
| parentId (anyOf 2) | null | No | |
| archiveTime | string | null | No | Archive timestamp; null means active |
| archiveTime (anyOf 1) | string | No | |
| archiveTime (anyOf 2) | null | No | |
| createTime | string | null | No | Original creation timestamp |
| createTime (anyOf 1) | string | No | |
| createTime (anyOf 2) | null | No | |
| source | string | null | No | Source label |
| source (anyOf 1) | string | No | |
| source (anyOf 2) | null | No |
Complete JSON Schema
400, 401, 403, 404, 409, 410, 413, 422, 429, 500, 503
Error response; branch on code.
application/json
Type: object
| Field | Type | Required | Description and constraints |
|---|---|---|---|
| code | string | Yes | Machine-readable error code |
| message | string | No | Error message; use code for program logic |
| requestId | string | No | Request trace identifier |
| operationId | string | No | Request receipt identifier; no status polling is needed |