Update presets
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.
Requires If-Match copied from the current etag, including quotes. Missing: 428; conflict: 412.
Parameters
id
path · Required
Resource, job or operation identifier
Type: string
Complete JSON Schema
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
If-Match
header · Required
Requires If-Match copied from the current etag, including quotes. Missing: 428; conflict: 412.
Type: string
Complete JSON Schema
Request body
Required
application/json
Type: object
| Field | Type | Required | Description and constraints |
|---|---|---|---|
| detail | string | null | No | Entry description |
| detail (anyOf 1) | string | No | {"maxLength":65536} |
| detail (anyOf 2) | null | No | |
| projectId | string | null | No | Project ID, or null |
| projectId (anyOf 1) | string | No | {"minLength":1,"maxLength":512} |
| projectId (anyOf 2) | null | No | |
| tagIds | array<string> | No | Tag IDs; comma-separated GET filter, array in bodies {"maxItems":100} |
| tagIds[] | string | No | {"minLength":1,"maxLength":512} |
| 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
200
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 |
| detail | string | null | No | Entry description |
| detail (anyOf 1) | string | No | |
| detail (anyOf 2) | null | No | |
| projectId | string | null | No | Project ID, or null |
| projectId (anyOf 1) | string | No | |
| projectId (anyOf 2) | null | No | |
| tagIds | array<string> | No | Tag IDs; comma-separated GET filter, array in bodies |
| tagIds[] | string | 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 | |
| order | string | No | Read-only position from client ordering; adjust ordering in the Treering app {"pattern":"^(0|[1-9][0-9]*)$"} |
Complete JSON Schema
400, 401, 403, 404, 409, 412, 413, 422, 428, 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 |