Whiteboards
To add a new empty whiteboard file, you need to execute a POST request against the /libraries/:id/whiteboards endpoint.
Two fields are available in the JSON body of the POST request:
name - the name of the whiteboard. Required.
parent_id - the id of the parent folder. Omit this field if the whiteboard file is attached to the root of the library and not to a parent folder.
In the response you will find the unique id which identifies the file.
Request (whiteboard file created in the root of the library)
curl --request POST \
--header "Content-Type: application/json" \
--url https://api.digitalsamba.com/api/v1/libraries/8606721f-d847-4721-a5dc-6537e822104c/whiteboards \
--user YOUR_TEAM_ID:YOUR_DEVELOPER_KEY \
--data '{"name": "My Whiteboard 1"}'
Response (200 OK)
{
"id": "a64ecb7a-fead-4865-97cf-064106a5220f",
"library_id": "8606721f-d847-4721-a5dc-6537e822104c",
"name": "My Whiteboard 1",
"type": "whiteboard",
"source": "api",
"status": "completed",
"created_at": "2025-01-22T13:16:51Z"
}
Last updated