video_relate_product
Link a video to a product listing as its main or detail video. Numeric IDs convert automatically, and repeating the same link is safe.
Instructions
Associate a video with a product. target: "main" (main-image video) or
"detail" (detail video). Numeric ids are auto-converted to the encrypted ids
the API needs. Re-relating the same pair is idempotent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | main | |
| video_id | Yes | ||
| product_id | Yes | ||
| account_key | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| error | No | ||
| success | No | ||
| msg_code | No | ||
| msg_info | No | ||
| video_id | No | ||
| error_type | No | ||
| product_id | No |