Notes
Note endpoints create, retrieve, update, and delete notes placed on project boards.
Endpoints
Create note # POST/api/v1/{hash}/note
/api/v1/{hash}/noteRequest
POST /api/v1/{hash}/notecurl --request POST \
--header "Authorization: Bearer YOUR_API_KEY" \
--header "Accept: application/json" \
--header "Content-Type: application/json" \
--data @payload.json \
"https://arcweave.com/api/v1/PROJECT_HASH/note"{
"boardId": "b1",
"x": 200,
"y": 300,
"content": "<p>Remember to revisit this scene.</p>"
}Request fields:
| Property | Required | Type | Description |
|---|---|---|---|
boardId | Yes | String | Board that will contain the note. |
x | Yes | Number | Horizontal board coordinate. |
y | Yes | Number | Vertical board coordinate. |
content | No | String or null | Note content. Defaults to null. |
theme | No | String | One of the color themes. Defaults to default. |
autoHeight | No | Boolean | Automatic-height setting. Defaults to true. |
width | No | Number | Note width. Defaults to 301. |
height | No | Number | Note height. Defaults to 101. |
index | No | Non-negative integer or "-" | Position in the board. Defaults to "-", which appends the note. |
The note must fit inside the 40000 by 40000 board canvas. width and height must each be between 0 and 40000; x must be between 0 and 40000 - width, and y must be between 0 and 40000 - height.
content accepts a string or null. Provide it as valid Arcweave HTML content using <p> or <b> tags. The server generates the note ID.
Response
Returns 201 Created with the generated resource ID and project version data:
{
"version": 12,
"newVersion": 13,
"versionTime": ["1720788000", "123456"],
"id": "65139ea3-331f-4b25-88b4-ea7a65ff106c"
}Get note # GET/api/v1/{hash}/note/{noteID}
/api/v1/{hash}/note/{noteID}Request
GET /api/v1/{hash}/note/{noteID}curl --request GET \
--header "Authorization: Bearer YOUR_API_KEY" \
--header "Accept: application/json" \
"https://arcweave.com/api/v1/PROJECT_HASH/note/{noteID}"Response
Returns 200 OK.
{
"id": "n1",
"boardId": "b1",
"x": 3100,
"y": 2200,
"width": 50,
"height": 100,
"theme": "cyan",
"content": "<p>Testing note</p>"
}Update note # PATCH/api/v1/{hash}/note/{noteID}
/api/v1/{hash}/note/{noteID}Request
PATCH /api/v1/{hash}/note/{noteID}curl --request PATCH \
--header "Authorization: Bearer YOUR_API_KEY" \
--header "Accept: application/json" \
--header "Content-Type: application/json" \
--data @payload.json \
"https://arcweave.com/api/v1/PROJECT_HASH/note/{noteID}"{
"x": 240,
"content": "<p>Updated note content</p>"
}Request fields:
| Property | Required | Type | Description |
|---|---|---|---|
content | No | String or null | Updated HTML content. If omitted, the current value is retained. |
theme | No | String | One of the color themes. Omit to keep the current theme. |
autoHeight | No | Boolean | Updated automatic-height setting. If omitted, the current value is retained. |
x | No | Number | Updated horizontal coordinate. If omitted, the current value is retained. |
y | No | Number | Updated vertical coordinate. If omitted, the current value is retained. |
width | No | Number | Updated width. If omitted, the current value is retained. |
height | No | Number | Updated height. If omitted, the current value is retained. |
Supported fields are content, theme, autoHeight, x, y, width, and height.
Geometry updates must keep the complete note inside the 40000 by 40000 board canvas. The server uses the note's current geometry for fields omitted from the request.
Provide content as valid Arcweave HTML content using <p> or <b> tags.
Response
Returns 200 OK with project version data:
{
"version": 12,
"newVersion": 13,
"versionTime": ["1720788000", "123456"]
}Delete note # DELETE/api/v1/{hash}/note/{noteID}
/api/v1/{hash}/note/{noteID}Request
DELETE /api/v1/{hash}/note/{noteID}curl --request DELETE \
--header "Authorization: Bearer YOUR_API_KEY" \
--header "Accept: application/json" \
"https://arcweave.com/api/v1/PROJECT_HASH/note/{noteID}"Response
Returns 200 OK with project version data:
{
"version": 12,
"newVersion": 13,
"versionTime": ["1720788000", "123456"]
}Common errors
| Status | Meaning |
|---|---|
400 | Invalid payload, unsupported field, malformed content, or invalid theme. |
403 | Project permission denied. |
404 | Project, note, or board not found. |
409 | The board or note changed before the command was applied. |