APIMedia
Create a media folder
Create a media folder at the top level or inside another folder.
A folder name must be unique among the folders with the same parent. The check ignores upper and lower case. Folders can be nested up to 5 levels deep.
Request
- Method:
POST - URL:
https://app.socialk.it/core/api/<workspaceUuid>/media/folders - Authorization:
Bearer <personal-key> - Content-Type:
application/json - Roles: Admin, Member (see Permissions)
Path parameters
| Parameter | Type | Description |
|---|---|---|
workspaceUuid | string | UUID of the workspace. |
Body
{
"name": "Black Friday",
"parent": "c4a1e8d2-6b07-4f93-a5d8-1e92b7f03c46"
}| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Name of the folder, up to 255 characters. |
parent | string or null | No | UUID of the parent folder. Leave it out or send null for a top-level folder. |
Example
curl -X POST 'https://app.socialk.it/core/api/<workspaceUuid>/media/folders' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <personal-key>' \
-H 'Content-Type: application/json' \
-d '{"name": "Black Friday", "parent": "c4a1e8d2-6b07-4f93-a5d8-1e92b7f03c46"}'Response
The folder object is described on List media folders.
{
"uuid": "8d3b5f17-2a64-4c90-b7e1-0f9a6d2c4e85",
"name": "Black Friday",
"parent": "c4a1e8d2-6b07-4f93-a5d8-1e92b7f03c46",
"media_count": 0
}Other 422 errors: parent is not a folder of this workspace (The selected parent is invalid.), or the parent is already at the deepest level (Folders can be nested up to 5 levels deep.).