Method
POST /v1/gallery/folders
Body Parameters
Headers
Bearer token (e.g.
Authorization: Bearer YOUR_API_KEY)application/jsoncurl -X POST https://api.voyantcloud.com/v1/gallery/folders \
-H "Authorization: Bearer $VOYANT_API_KEY" \
-H "content-type: application/json" \
-d '{
"name": "Campaigns",
"parentFolderId": "11111111-1111-1111-1111-111111111111"
}'
{
"data": {
"id": "22222222-2222-2222-2222-222222222222",
"workspaceId": "ws_abc",
"name": "Campaigns",
"parentId": "11111111-1111-1111-1111-111111111111",
"path": "Marketing/Campaigns",
"createdAt": "2025-02-01T08:00:00.000Z",
"updatedAt": "2025-02-01T08:00:00.000Z"
}
}
Create a gallery folder within the current workspace.
POST /v1/gallery/folders
Authorization: Bearer YOUR_API_KEY)application/jsoncurl -X POST https://api.voyantcloud.com/v1/gallery/folders \
-H "Authorization: Bearer $VOYANT_API_KEY" \
-H "content-type: application/json" \
-d '{
"name": "Campaigns",
"parentFolderId": "11111111-1111-1111-1111-111111111111"
}'
{
"data": {
"id": "22222222-2222-2222-2222-222222222222",
"workspaceId": "ws_abc",
"name": "Campaigns",
"parentId": "11111111-1111-1111-1111-111111111111",
"path": "Marketing/Campaigns",
"createdAt": "2025-02-01T08:00:00.000Z",
"updatedAt": "2025-02-01T08:00:00.000Z"
}
}
409 Conflict.