Light Mode
Attach Youtube Video
POST
/products/{product}/videoLast modified: 16 days ago
This endpoint allows you to add unlimited videos to a specific product by passing the product
as a path parameter.
:::caution[Alert]
- Videos must be added as Youtube links.
- You can only add one video per request.
:::
Request
Path Params
product
integer
required
The Product ID. List of Product ID can be found here.
Body Params application/json
No schema defined
Example
{
"video_url": "https://www.youtube.com/watch?v=dmqWuUeA5Ug",
"default": true,
"alt": "things from Google"
}
Request samples
Responses
Attached Successfully(201)
Not Found(404)
Error Validation(422)
Attached Successfully
HTTP Code: 201
Content Type : JSONapplication/json
Data Schema
No schema defined
Example
{
"status": 201,
"success": true,
"data": {
"id": 1749963998,
"image": {
"original": {
"url": "http://img.youtube.com/vi/dmqWuUeA5Ug/maxresdefault.jpg",
"width": 1920,
"height": 1080
},
"standard_resolution": {
"url": "http://img.youtube.com/vi/dmqWuUeA5Ug/sddefault.jpg",
"width": 640,
"height": 480
},
"low_resolution": {
"url": "http://img.youtube.com/vi/dmqWuUeA5Ug/mqdefault.jpg",
"width": 320,
"height": 180
},
"thumbnail": {
"url": "http://img.youtube.com/vi/dmqWuUeA5Ug/default.jpg",
"width": 120,
"height": 90
}
},
"default": true,
"alt_seo": "Introducing a few new helpful things from Google",
"video_url": "https://www.youtube.com/watch?v=dmqWuUeA5Ug",
"type": "video"
}
}
Last modified: 16 days ago