Set the thumbnail
PUT
/videos/{id}/thumbnail
const url = 'https://api.devstreamcore.com/v1/videos/vid_a1b2c3d4e5f6a1b2c3d4/thumbnail';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'image/*'}, body: 'binary'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.devstreamcore.com/v1/videos/vid_a1b2c3d4e5f6a1b2c3d4/thumbnail \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: image/*' \ --data binaryUpload a raw image body (Content-Type: image/*, max 5 MiB).
Authorizations
Seção intitulada “Authorizations ”Parameters
Seção intitulada “ Parameters ”Path Parameters
Seção intitulada “Path Parameters ” id
required
string
Example
vid_a1b2c3d4e5f6a1b2c3d4Request Body
Seção intitulada “Request Body ” Media type image/*
string format: binary
Responses
Seção intitulada “ Responses ”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
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
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
code
string
message
required
string
param
string
request_id
string
Example
{ "error": { "type": "invalid_request_error" }}