Attach Youtube Video
POST {{baseUrl}}/products/:product/video
You can add unlimited videos to a specific product by providing the ID of the product you want to attach these videos to it in the product path parameter.
You can add one video only per request.
Note: videos are added as Youtube links.
OAuth Scopes
products.read_write
Request Body
{"video_url"=>"https://www.youtube.com/watch?v=dmqWuUeA5Ug", "default"=>true, "alt"=>"things from Google"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"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"}}