Update a product video
Updates a product video. The product and inline video fields cannot be changed on update and are ignored if sent; to repoint the file use video_path. Other writable fields such as order are applied.
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
The unique identifier of the product video.
Fields for creating or fully replacing a product video. At least one of video or video_path must be supplied on create. On update, product and video are ignored; use video_path to repoint the stored file.
Identifier of the product the video belongs to. Ignored on update.
Inline video file content, sent as a string. Ignored on update.
Storage path of an already-uploaded video file to point the record at.
product_videos/abc123.mp4Sort order. Lower values appear first. Defaults to 0.
0The updated product video.
A product video record.
Unique identifier of the product video.
Identifier of the product the video belongs to.
Reference to the stored video file.
Sort order used when listing a product's videos. Lower values appear first.
0The request contains invalid or missing data.
Authentication credentials were not provided or are invalid.
The authenticated user does not have administrator privileges.
The requested product video does not exist.
PUT /api/v1/remote/1/product_video/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 66
{
"product": 340,
"video_path": "product_videos/abc123.mp4",
"order": 0
}{
"pk": 7,
"product": 340,
"video": "product_videos/abc123.mp4",
"order": 0
}Last updated
Was this helpful?

