Skip to main content
POST
/
library
/
{libraryId}
/
videos
/
{videoId}
/
thumbnail
Set Thumbnail
curl --request POST \
  --url https://video.bunnycdn.com/library/{libraryId}/videos/{videoId}/thumbnail \
  --header 'AccessKey: <api-key>' \
  --header 'Content-Type: application/octet-stream' \
  --data '"<string>"'
{
  "success": true,
  "message": "<string>",
  "statusCode": 123
}

Authorizations

AccessKey
string
header
required

AccessKey based authentication

Path Parameters

libraryId
integer<int64>
required
videoId
string
required

Query Parameters

thumbnailUrl
string | null

Body

application/octet-stream

Optional thumbnail file to upload

Response

The thumbnail was successfully set

success
boolean

Determines if the request was successful

message
string | null

Response message description

statusCode
integer<int32>

The response status code