Boards
Read a board's shapes and add shapes to a board.
- POST
/api/v1/files/{fileId}/boards - GET
/api/v1/files/{fileId}/boards/{boardId}/shapes - POST
/api/v1/files/{fileId}/boards/{boardId}/shapes
Create a board block with shapes
POST/api/v1/files/{fileId}/boards
A new board block after afterBlockId (default: the end) with the given shapes; shapes without coordinates are laid out (grid, flow or cluster). Answers the new boardId and blockId.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
fileIdrequired | path | string | The host's file id 1 to 1024 characters. |
Idempotency-Key | header | string | 1-255 visible ASCII characters, scoped to the caller. A repeat of the same request within 24 h answers the stored result (Idempotency-Replayed: true); another request with the same key is 422 IDEMPOTENCY_KEY_REUSED; a duplicate while the first runs is 409 IDEMPOTENCY_IN_PROGRESS. Failed requests are not stored. 1 to 255 characters. |
Request body
Required, application/json.
| Field | Type | Description |
|---|---|---|
shapesrequired | array of object | [{ref?, kind: sticky|rect|ellipse|diamond|text|arrow, text?, tone?, x?, y?, from?, to?}] |
afterBlockId | string | - |
layout | string | One of grid, flow, cluster. |
Example
{
"afterBlockId": "blk_01m87jv4q9zr3t6y8u1i2o3p4a",
"shapes": [
{
"ref": "a",
"kind": "sticky",
"text": "Idea"
},
{
"ref": "b",
"kind": "rect",
"text": "Plan"
},
{
"kind": "arrow",
"from": "a",
"to": "b"
}
],
"layout": "flow"
}Responses
200OK
Headers
| Header | Description |
|---|---|
Idempotency-Replayed | true when this is the stored answer of an earlier request with the same Idempotency-Key |
RateLimit-Policy | Token buckets that apply: "subject";q=<burst>;w=<seconds to refill>, and "file-writes" on writes |
RateLimit | The bucket closest to empty: "<name>";r=<remaining>;t=<seconds until full> |
Body application/json
| Field | Type | Description |
|---|---|---|
boardIdrequired | string | - |
blockId | string | null | - |
shapeIds | object | Your refs to the new shape ids |
createdrequired | array of string | - |
Other members may appear; ignore the ones you do not know.
Example
{
"boardId": "bd_01m87jv4t0h5kq8r2x9w3c4d5e",
"blockId": "blk_01m87jv4tq2w3e4r5t6y7u8i9o",
"shapeIds": {
"a": "s_01m87jv4t1a2b3c4d5e6f7g8h9",
"b": "s_01m87jv4t1k2m3n4p5q6r7s8t9"
},
"created": [
"s_01m87jv4t1a2b3c4d5e6f7g8h9",
"s_01m87jv4t1k2m3n4p5q6r7s8t9",
"s_01m87jv4t1v2w3x4y5z6a7b8c9"
]
}400Bad Request: BAD_INPUT, PATCH_INVALID, CURSOR_INVALID, IDEMPOTENCY_KEY_INVALID, …
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:idempotency-key-invalid",
"title": "Bad Request",
"status": 400,
"detail": "Idempotency-Key must be 1-255 visible ASCII characters",
"code": "IDEMPOTENCY_KEY_INVALID"
}Codes: IDEMPOTENCY_KEY_INVALID, BAD_INPUT.
401Unauthorized: UNAUTHENTICATED, TOKEN_INVALID, TOKEN_EXPIRED
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:unauthenticated",
"title": "Unauthorized",
"status": 401,
"detail": "missing or wrong credentials",
"code": "UNAUTHENTICATED"
}Codes: UNAUTHENTICATED, TOKEN_INVALID, TOKEN_EXPIRED.
403Forbidden: ROLE_FORBIDDEN, SCOPE_REQUIRED, FILES_REQUIRED
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:scope-required",
"title": "Forbidden",
"status": 403,
"detail": "SCOPE_REQUIRED: comment_add needs canvas:comment",
"code": "SCOPE_REQUIRED"
}Codes: SCOPE_REQUIRED, ROLE_FORBIDDEN, FILES_REQUIRED.
404Not Found: API_OFF, BLOCK_NOT_FOUND, NOT_FOUND, …
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:api-off",
"title": "Not Found",
"status": 404,
"detail": "the API is not enabled for this host ([host.flags] api_v1)",
"code": "API_OFF"
}Codes: API_OFF, NOT_FOUND.
409Conflict: CONFLICT, CONFIRMATION_REQUIRED, IDEMPOTENCY_IN_PROGRESS (with Retry-After)
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:idempotency-in-progress",
"title": "Conflict",
"status": 409,
"detail": "a request with this Idempotency-Key is still running",
"code": "IDEMPOTENCY_IN_PROGRESS"
}Codes: IDEMPOTENCY_IN_PROGRESS.
413Payload Too Large: DOC_TOO_LARGE, IMPORT_TOO_LARGE
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:body-too-large",
"title": "Payload Too Large",
"status": 413,
"detail": "the request body is too large",
"code": "BODY_TOO_LARGE"
}Codes: BODY_TOO_LARGE.
422Unprocessable Entity: IDEMPOTENCY_KEY_REUSED: the Idempotency-Key was used with a different request
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:idempotency-key-reused",
"title": "Unprocessable Entity",
"status": 422,
"detail": "this Idempotency-Key was used with a different request",
"code": "IDEMPOTENCY_KEY_REUSED"
}Codes: IDEMPOTENCY_KEY_REUSED.
429Too Many Requests: RATE_LIMITED, with Retry-After, RateLimit-Policy and RateLimit
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:rate-limited",
"title": "Too Many Requests",
"status": 429,
"detail": "too many requests (subject limit); retry later",
"code": "RATE_LIMITED"
}Codes: RATE_LIMITED.
502Bad Gateway: HOST_UNAVAILABLE: your load or save callback failed
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:host-unavailable",
"title": "Bad Gateway",
"status": 502,
"detail": "host answered 503 Service Unavailable",
"code": "HOST_UNAVAILABLE"
}Codes: HOST_UNAVAILABLE.
503Service Unavailable: UNAVAILABLE, ROOM_UNAVAILABLE, with Retry-After
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:unavailable",
"title": "Service Unavailable",
"status": 503,
"detail": "the idempotency store is unavailable; retry",
"code": "UNAVAILABLE"
}Codes: UNAVAILABLE.
Errors
| Status | Code | When |
|---|---|---|
| 400 | IDEMPOTENCY_KEY_INVALID | The Idempotency-Key header is empty, longer than 255 bytes, or has characters outside visible ASCII. |
| 422 | IDEMPOTENCY_KEY_REUSED | The key was used in the last 24 hours with another method, path or body. Use a new key for a new request. |
| 409 | IDEMPOTENCY_IN_PROGRESS | A request with the same key is still running, on this or another node. Retry after Retry-After (1 second) to get its answer. |
| 413 | BODY_TOO_LARGE | The request body is over the server's limit (at least 5 MiB, the import limit). |
| 400 | BAD_INPUT | The request is not what the operation takes: the body is not a JSON object, a field is missing or has the wrong type, an op, mode, format or event type is unknown, or fileId is longer than 1,024 bytes. detail says which. |
| 404 | NOT_FOUND | An unknown database, board or comment thread id, or a path that is no API operation. |
| 502 | HOST_UNAVAILABLE | Your load or save callback failed or timed out, so the file could not be loaded or saved. |
Also, like every operation on a file: API_OFF, UNAUTHENTICATED, TOKEN_INVALID, TOKEN_EXPIRED, SCOPE_REQUIRED, ROLE_FORBIDDEN, FILES_REQUIRED, RATE_LIMITED, UNAVAILABLE, INTERNAL.
Read a board's shapes
GET/api/v1/files/{fileId}/boards/{boardId}/shapes
The shapes of a board block in drawing order: kind, text, position and size, tone, and for arrows the shapes they connect.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
fileIdrequired | path | string | The host's file id 1 to 1024 characters. |
boardIdrequired | path | string | Board id |
Responses
200OK
Headers
| Header | Description |
|---|---|
RateLimit-Policy | Token buckets that apply: "subject";q=<burst>;w=<seconds to refill>, and "file-writes" on writes |
RateLimit | The bucket closest to empty: "<name>";r=<remaining>;t=<seconds until full> |
Body application/json
| Field | Type | Description |
|---|---|---|
boardIdrequired | string | - |
shapesrequired | array of object | - |
id | string | - |
kind | string | sticky, rect, ellipse, diamond, text or arrow |
text | string | null | - |
x | number | null | - |
y | number | null | - |
w | number | null | - |
h | number | null | - |
tone | string | null | - |
from | string | null | Arrows: the shape it starts at |
to | string | null | Arrows: the shape it ends at |
Other members may appear; ignore the ones you do not know.
Example
{
"boardId": "bd_01m87jv4t0h5kq8r2x9w3c4d5e",
"shapes": [
{
"id": "s_01m87jv4t1a2b3c4d5e6f7g8h9",
"kind": "sticky",
"text": "Idea",
"x": 0,
"y": 0,
"w": 180,
"h": 120,
"tone": "y",
"from": null,
"to": null
},
{
"id": "s_01m87jv4t1k2m3n4p5q6r7s8t9",
"kind": "rect",
"text": "Plan",
"x": 240,
"y": 0,
"w": 180,
"h": 100,
"tone": null,
"from": null,
"to": null
},
{
"id": "s_01m87jv4t1v2w3x4y5z6a7b8c9",
"kind": "arrow",
"text": null,
"x": null,
"y": null,
"w": null,
"h": null,
"tone": null,
"from": "s_01m87jv4t1a2b3c4d5e6f7g8h9",
"to": "s_01m87jv4t1k2m3n4p5q6r7s8t9"
}
]
}401Unauthorized: UNAUTHENTICATED, TOKEN_INVALID, TOKEN_EXPIRED
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:unauthenticated",
"title": "Unauthorized",
"status": 401,
"detail": "missing or wrong credentials",
"code": "UNAUTHENTICATED"
}Codes: UNAUTHENTICATED, TOKEN_INVALID, TOKEN_EXPIRED.
403Forbidden: ROLE_FORBIDDEN, SCOPE_REQUIRED, FILES_REQUIRED
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:scope-required",
"title": "Forbidden",
"status": 403,
"detail": "SCOPE_REQUIRED: comment_add needs canvas:comment",
"code": "SCOPE_REQUIRED"
}Codes: SCOPE_REQUIRED, ROLE_FORBIDDEN, FILES_REQUIRED.
404Not Found: API_OFF, BLOCK_NOT_FOUND, NOT_FOUND, …
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:api-off",
"title": "Not Found",
"status": 404,
"detail": "the API is not enabled for this host ([host.flags] api_v1)",
"code": "API_OFF"
}Codes: API_OFF, NOT_FOUND.
429Too Many Requests: RATE_LIMITED, with Retry-After, RateLimit-Policy and RateLimit
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:rate-limited",
"title": "Too Many Requests",
"status": 429,
"detail": "too many requests (subject limit); retry later",
"code": "RATE_LIMITED"
}Codes: RATE_LIMITED.
503Service Unavailable: UNAVAILABLE, ROOM_UNAVAILABLE, with Retry-After
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:unavailable",
"title": "Service Unavailable",
"status": 503,
"detail": "the idempotency store is unavailable; retry",
"code": "UNAVAILABLE"
}Codes: UNAVAILABLE.
Errors
| Status | Code | When |
|---|---|---|
| 404 | NOT_FOUND | An unknown database, board or comment thread id, or a path that is no API operation. |
Also, like every operation on a file: API_OFF, UNAUTHENTICATED, TOKEN_INVALID, TOKEN_EXPIRED, SCOPE_REQUIRED, ROLE_FORBIDDEN, FILES_REQUIRED, RATE_LIMITED, UNAVAILABLE, INTERNAL.
Add shapes to a board
POST/api/v1/files/{fileId}/boards/{boardId}/shapes
Add shapes to a board: sticky, rect, ellipse, diamond, text and arrow (from and to name other shapes by their ref in the same call, or by id). Shapes without x and y are laid out (grid, flow or cluster) below what the board already holds. shapeIds maps your refs to the new ids.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
fileIdrequired | path | string | The host's file id 1 to 1024 characters. |
boardIdrequired | path | string | Board id |
Idempotency-Key | header | string | 1-255 visible ASCII characters, scoped to the caller. A repeat of the same request within 24 h answers the stored result (Idempotency-Replayed: true); another request with the same key is 422 IDEMPOTENCY_KEY_REUSED; a duplicate while the first runs is 409 IDEMPOTENCY_IN_PROGRESS. Failed requests are not stored. 1 to 255 characters. |
Request body
Required, application/json.
| Field | Type | Description |
|---|---|---|
shapesrequired | array of object | - |
layout | string | One of grid, flow, cluster. |
Example
{
"shapes": [
{
"ref": "a",
"kind": "sticky",
"text": "Idea"
},
{
"ref": "b",
"kind": "rect",
"text": "Plan"
},
{
"kind": "arrow",
"from": "a",
"to": "b"
}
],
"layout": "flow"
}Responses
200OK
Headers
| Header | Description |
|---|---|
Idempotency-Replayed | true when this is the stored answer of an earlier request with the same Idempotency-Key |
RateLimit-Policy | Token buckets that apply: "subject";q=<burst>;w=<seconds to refill>, and "file-writes" on writes |
RateLimit | The bucket closest to empty: "<name>";r=<remaining>;t=<seconds until full> |
Body application/json
| Field | Type | Description |
|---|---|---|
boardIdrequired | string | - |
blockId | string | null | - |
shapeIds | object | Your refs to the new shape ids |
createdrequired | array of string | - |
Other members may appear; ignore the ones you do not know.
Example
{
"boardId": "bd_01m87jv4t0h5kq8r2x9w3c4d5e",
"blockId": null,
"shapeIds": {
"a": "s_01m87jv4t1a2b3c4d5e6f7g8h9",
"b": "s_01m87jv4t1k2m3n4p5q6r7s8t9"
},
"created": [
"s_01m87jv4t1a2b3c4d5e6f7g8h9",
"s_01m87jv4t1k2m3n4p5q6r7s8t9",
"s_01m87jv4t1v2w3x4y5z6a7b8c9"
]
}400Bad Request: BAD_INPUT, PATCH_INVALID, CURSOR_INVALID, IDEMPOTENCY_KEY_INVALID, …
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:idempotency-key-invalid",
"title": "Bad Request",
"status": 400,
"detail": "Idempotency-Key must be 1-255 visible ASCII characters",
"code": "IDEMPOTENCY_KEY_INVALID"
}Codes: IDEMPOTENCY_KEY_INVALID, BAD_INPUT.
401Unauthorized: UNAUTHENTICATED, TOKEN_INVALID, TOKEN_EXPIRED
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:unauthenticated",
"title": "Unauthorized",
"status": 401,
"detail": "missing or wrong credentials",
"code": "UNAUTHENTICATED"
}Codes: UNAUTHENTICATED, TOKEN_INVALID, TOKEN_EXPIRED.
403Forbidden: ROLE_FORBIDDEN, SCOPE_REQUIRED, FILES_REQUIRED
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:scope-required",
"title": "Forbidden",
"status": 403,
"detail": "SCOPE_REQUIRED: comment_add needs canvas:comment",
"code": "SCOPE_REQUIRED"
}Codes: SCOPE_REQUIRED, ROLE_FORBIDDEN, FILES_REQUIRED.
404Not Found: API_OFF, BLOCK_NOT_FOUND, NOT_FOUND, …
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:api-off",
"title": "Not Found",
"status": 404,
"detail": "the API is not enabled for this host ([host.flags] api_v1)",
"code": "API_OFF"
}Codes: API_OFF, NOT_FOUND.
409Conflict: CONFLICT, CONFIRMATION_REQUIRED, IDEMPOTENCY_IN_PROGRESS (with Retry-After)
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:idempotency-in-progress",
"title": "Conflict",
"status": 409,
"detail": "a request with this Idempotency-Key is still running",
"code": "IDEMPOTENCY_IN_PROGRESS"
}Codes: IDEMPOTENCY_IN_PROGRESS.
413Payload Too Large: DOC_TOO_LARGE, IMPORT_TOO_LARGE
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:body-too-large",
"title": "Payload Too Large",
"status": 413,
"detail": "the request body is too large",
"code": "BODY_TOO_LARGE"
}Codes: BODY_TOO_LARGE.
422Unprocessable Entity: IDEMPOTENCY_KEY_REUSED: the Idempotency-Key was used with a different request
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:idempotency-key-reused",
"title": "Unprocessable Entity",
"status": 422,
"detail": "this Idempotency-Key was used with a different request",
"code": "IDEMPOTENCY_KEY_REUSED"
}Codes: IDEMPOTENCY_KEY_REUSED.
429Too Many Requests: RATE_LIMITED, with Retry-After, RateLimit-Policy and RateLimit
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:rate-limited",
"title": "Too Many Requests",
"status": 429,
"detail": "too many requests (subject limit); retry later",
"code": "RATE_LIMITED"
}Codes: RATE_LIMITED.
502Bad Gateway: HOST_UNAVAILABLE: your load or save callback failed
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:host-unavailable",
"title": "Bad Gateway",
"status": 502,
"detail": "host answered 503 Service Unavailable",
"code": "HOST_UNAVAILABLE"
}Codes: HOST_UNAVAILABLE.
503Service Unavailable: UNAVAILABLE, ROOM_UNAVAILABLE, with Retry-After
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:unavailable",
"title": "Service Unavailable",
"status": 503,
"detail": "the idempotency store is unavailable; retry",
"code": "UNAVAILABLE"
}Codes: UNAVAILABLE.
Errors
| Status | Code | When |
|---|---|---|
| 400 | IDEMPOTENCY_KEY_INVALID | The Idempotency-Key header is empty, longer than 255 bytes, or has characters outside visible ASCII. |
| 422 | IDEMPOTENCY_KEY_REUSED | The key was used in the last 24 hours with another method, path or body. Use a new key for a new request. |
| 409 | IDEMPOTENCY_IN_PROGRESS | A request with the same key is still running, on this or another node. Retry after Retry-After (1 second) to get its answer. |
| 413 | BODY_TOO_LARGE | The request body is over the server's limit (at least 5 MiB, the import limit). |
| 400 | BAD_INPUT | The request is not what the operation takes: the body is not a JSON object, a field is missing or has the wrong type, an op, mode, format or event type is unknown, or fileId is longer than 1,024 bytes. detail says which. |
| 404 | NOT_FOUND | An unknown database, board or comment thread id, or a path that is no API operation. |
| 502 | HOST_UNAVAILABLE | Your load or save callback failed or timed out, so the file could not be loaded or saved. |
Also, like every operation on a file: API_OFF, UNAUTHENTICATED, TOKEN_INVALID, TOKEN_EXPIRED, SCOPE_REQUIRED, ROLE_FORBIDDEN, FILES_REQUIRED, RATE_LIMITED, UNAVAILABLE, INTERNAL.
Last changed .