Webapps
To add a new embedded content (webapp) file, you need to execute a POST request against the /libraries/:id/webapps endpoint. This is useful for embedding external websites like Youtube, Miro, Google Docs, etc...
Three fields are available in the JSON body of the POST request:
url - the url of the external site to embed
name - the name of the file. Required.
parent_id - the id of the parent folder. Omit this field if the webapp 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 (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/webapps \
--user YOUR_TEAM_ID:YOUR_DEVELOPER_KEY \
--data '{"url": "https://www.youtube.com/watch?v=hI9HQfCAw64", "name": "Starship 5th Flight Test"}'
Response (200 OK)
{
"id": "8b8febd1-d200-4120-b7a1-4f9a3e5c487b",
"library_id": "8606721f-d847-4721-a5dc-6537e822104c",
"name": "Starship 5th Flight Test",
"type": "youtube",
"url": "https:\/\/www.youtube.com\/watch?v=hI9HQfCAw64",
"source": "api",
"status": "completed",
"created_at":"2025-01-22T09:56:54Z"
}
Last updated