📁 Content Library

Create a media folder

Changed on

Creates a folder in the workspace content library. Omit parent_folder_id to create a top-level folder, or supply it to create a subfolder. Folder names must be unique within their level.

post/api/v1/workspaces/{workspace_id}/media/folders

Request

  • Base URL
    https://api.contentstudio.io
  • URL
    https://api.contentstudio.io/api/v1/workspaces/{workspace_id}/media/folders
  • Auth
    API key in header X-API-Key

Path parameters

workspace_idstring required
Example:610a1e660cb41530ca40d372

Request body

folder_namestring required
parent_folder_idstring nullable

Create as a subfolder of this folder

Example request

{
  "folder_name": "Campaign assets",
  "parent_folder_id": "625d06734ceb636c2f5e7743"
}

Response

Folder created

statusboolean
messagestring

Example response

{
  "status": true,
  "message": "Folder created successfully."
}

Changes