Pular para o conteúdo

Set the thumbnail

PUT
/videos/{id}/thumbnail
curl --request PUT \
--url https://api.devstreamcore.com/v1/videos/vid_a1b2c3d4e5f6a1b2c3d4/thumbnail \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: image/*' \
--data binary

Upload a raw image body (Content-Type: image/*, max 5 MiB).

id
required
string
Example
vid_a1b2c3d4e5f6a1b2c3d4
Media type image/*
string format: binary

Public thumbnail URL

Media type application/json
object
thumbnail_url
required
string
Example generated
{
"thumbnail_url": "example"
}

Invalid request

Media type application/json

Error envelope — a single error per response.

object
error
required
object
type
required
string
Allowed values: invalid_request_error authentication_error permission_error not_found rate_limit_error quota_exceeded api_error
code
string
message
required
string
param
string
request_id
string
Example
{
"error": {
"type": "invalid_request_error"
}
}

Missing or invalid API key

Media type application/json

Error envelope — a single error per response.

object
error
required
object
type
required
string
Allowed values: invalid_request_error authentication_error permission_error not_found rate_limit_error quota_exceeded api_error
code
string
message
required
string
param
string
request_id
string
Example
{
"error": {
"type": "invalid_request_error"
}
}

Resource not found

Media type application/json

Error envelope — a single error per response.

object
error
required
object
type
required
string
Allowed values: invalid_request_error authentication_error permission_error not_found rate_limit_error quota_exceeded api_error
code
string
message
required
string
param
string
request_id
string
Example
{
"error": {
"type": "invalid_request_error"
}
}