For the complete documentation index, see llms.txt. This page is also available as Markdown.

Partially update a product video

Updates one or more fields of a product video. Only the fields you send are changed; product and inline video are ignored, while video_path repoints the stored file.

patch
/product_video/{id}/
Authorizations
AuthorizationstringRequired

Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.

Path parameters
idintegerRequired

The unique identifier of the product video.

Body

Fields for partially updating a product video. All fields are optional; product and video are ignored.

video_pathstringOptional

Storage path of an already-uploaded video file to point the record at.

orderintegerOptional

Sort order. Lower values appear first.

Responses
200

The updated product video.

application/json

A product video record.

pkintegerRead-onlyRequired

Unique identifier of the product video.

productintegerRequired

Identifier of the product the video belongs to.

videostringRequired

Reference to the stored video file.

orderintegerRequired

Sort order used when listing a product's videos. Lower values appear first.

Default: 0
patch/product_video/{id}/
PATCH /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: 11

{
  "order": 2
}
{
  "pk": 7,
  "product": 340,
  "video": "product_videos/abc123.mp4",
  "order": 0
}

Last updated

Was this helpful?