Skip to main content
POST
/
libraries
/
{libraryId}
/
folders
Create Folder
curl --request POST \
  --url https://api.tenbyte.io/v1/stream/libraries/{libraryId}/folders \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "New Folder",
  "parent_id": "59ac8aa5-c569-4c82-8e3d-c10dd026813a"
}
'
{
  "data": {
    "created_at": "2025-11-10T14:35:09.411038+06:00",
    "updated_at": "2025-11-10T14:35:09.411038+06:00",
    "name": "New Folder",
    "id": "8946e490-2cf3-48d2-82ae-99ab8e65a795",
    "library_id": "314221a1-3cbf-4d3c-846e-f6c22bc43064"
  },
  "message": "Folder Created Successfully",
  "success": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

libraryId
string
required

Unique identifier of the library.

Body

application/json
name
string
required

The display name of the folder. Used to identify and reference the folder in API requests or dashboards.

parent_id
string

ID of the parent folder this item belongs to. Use null for root level.

Response

data
object
required
message
string
required
success
boolean
required