curl --request POST \
--url https://video.bunnycdn.com/library/{libraryId}/collections \
--header 'AccessKey: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'{
"videoLibraryId": 123,
"guid": "<string>",
"name": "<string>",
"videoCount": 123,
"totalSize": 123,
"previewVideoIds": "<string>",
"previewImageUrls": [
"<string>"
]
}curl --request POST \
--url https://video.bunnycdn.com/library/{libraryId}/collections \
--header 'AccessKey: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'{
"videoLibraryId": 123,
"guid": "<string>",
"name": "<string>",
"videoCount": 123,
"totalSize": 123,
"previewVideoIds": "<string>",
"previewImageUrls": [
"<string>"
]
}AccessKey based authentication
The name of the collection
The collection was successfully created
The video library ID that contains the collection
The unique ID of the collection
The name of the collection
The number of videos that the collection contains
The total storage size of the collection
The IDs of videos to be used as preview icons
The URLs of preview images of videos in the collection
Was this page helpful?