Delete projects
After deletion, the record is absent from lists and reading or editing its ID returns 404. The API does not undo deletion. Saved data can be submitted to the create endpoint with a new ID; the old ID and relationships are not restored.
A 200 response means deletion, all related updates, versions and sync changes have committed in one transaction. No status polling is needed. A processing failure rolls back all changes made by this request. After a network timeout, the outcome may be unknown; retry the original request with the same Idempotency-Key. Other devices receive the updates during subsequent sync.
Related time entries and presets are retained; their projectId becomes null.
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 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 |
| name | string | null | No | Name |
| name (anyOf 1) | string | No | |
| name (anyOf 2) | null | No | |
| color | string | null | No | Color value |
| color (anyOf 1) | string | No | |
| color (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 | |
| order | string | No | Read-only position from client ordering; adjust ordering in the Treering app {"pattern":"^(0|[1-9][0-9]*)$"} |
| source | string | null | No | Source label |
| source (anyOf 1) | string | No | |
| source (anyOf 2) | null | No |
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 |