Attach Product Video
Attaches (or replaces) the Cloudflare Stream video of a product. Replacing a video deletes the previous one from Cloudflare Stream.
X-API-Key<token>
In: header
Path Parameters
id*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X PUT "https://example.com/products/string/video" \ -H "Content-Type: application/json" \ -d '{ "uid": "string" }'{ "type": "success", "code": "string", "status": 0, "message": "string", "data": { "uid": "string", "status": "pending", "duration": 0, "size": 0, "thumbnail": "string", "playbackUrl": "string", "iframeUrl": "string", "error": "string" }}