Nuclom logoNuclom
Collections

Create collection

Create a new collection. Use `type: "folder"` for simple grouping, `type: "playlist"` for ordered videos with progress tracking.

POST
/collections

Create a new collection. Use type: "folder" for simple grouping, type: "playlist" for ordered videos with progress tracking.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Authentication token from login or API key

Request Body

Create collection data

application/json
  1. body
name*string
description?string|null|null
thumbnailUrl?string|null|null
organizationId*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$
Formatuuid
type?|null
isPublic?boolean|null
[key: string]?any

Response Body

Collection created successfully

application/json
  1. response
id*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$
Formatuuid
name*string
description*string|null
thumbnailUrl*string|null
organizationId*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$
Formatuuid
type*string
Value in"folder""playlist"
isPublic*boolean
videoCount*number|
createdAt*string
updatedAt*string
[key: string]?any
curl -X POST 'https://nuclom.com/api/collections' \  -H 'Content-Type: application/json' \  -d '{  "name": "string",  "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9"}'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "name": "string",  "description": "string",  "thumbnailUrl": "string",  "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",  "type": "folder",  "isPublic": true,  "videoCount": 0,  "createdAt": "string",  "updatedAt": "string"}