On Demand\Promotions
Add a promotion to an On Demand page
Information about this method appears below.
post/ondemand/pages/{ondemand_id}/promotions
Request
- Base URLhttps://api.vimeo.com
- AuthOAuth 2Authorization code/oauth/authorize, token URL /oauth/access_tokenClient credentialsToken URL /oauth/authorize/clientScopespromo_codes, create
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
ondemand_idnumber required
Example:61326
The ID of the On Demand.
Request body
Example request
{
"code": "sxsw2018",
"download": true,
"end_time": "1526089920",
"label": "sxsw",
"percent_off": 50,
"start_time": "1526089920",
"total": 9
}Response
The promotion was added.
Example response
{
"access_type": "default",
"discount_type": "free",
"download": true,
"label": "8jgaieumbzstujhn8k304iwwezawkvwm",
"metadata": {
"connections": {
"codes": {
"total": 1,
"uri": "/ondemand/pages/61326/promotion/12345/codes"
}
}
},
"product_type": "any",
"stream_period": "1_week",
"total": 1,
"type": "batch",
"uri": "/ondemand/pages/61326/promotions/12345"
}Changes
No recorded changes to this operation across all 13 revisions of this API.