Create thumbnail image
Upload thumbnail image
Uploading a thumbnail is done by sending a PUT
request with form data containing a JPG file to the /videos/:videoId/thumbnail
endpoint.
Content-Type has to be multipart/form-data
and not application/json
.
curl -X PUT https://app.ignitevideo.cloud/api/videos/[VIDEO_ID]/thumbnail \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: multipart/form-data" \
--data-binary "@[PATH_TO_THUMBNAIL_FILE]"
Response
The response is the new Video object with the new thumbnail URL.
{
"videoId": "[VIDEO_ID]",
"title": "Your video title",
"slug": "your-video-slug",
"src": {
"thumbnailUrl": string,
...
},
...
}