ssai
Create live ad break
Changed onCreate an ad break for a live media
post/v2/sites/{site_id}/live/{media_id}/ad_breaks/
Request
- Base URLhttps://api.jwplayer.com
- URLhttps://api.jwplayer.com/v2/sites/{site_id}/live/{media_id}/ad_breaks/
- AuthAPI key in header Authorization
Path parameters
site_idstring required
Unique identifier for a resource
Example:Ny05CEfj
Unique alphanumeric ID of the site
media_idstring required
Unique identifier for a resource
Example:Ny05CEfj
Unique alphanumeric ID of the media
Request body
Example request
{
"metadata": {
"start_time": "2019-09-25T15:29:11.042095+00:00",
"duration": 30
}
}Response
Request to create ad break successful
Example response
{
"schema": "https://schema.jwplayer.com/types/thumbnail.json",
"id": "Ny05CEfj",
"created": "2019-09-25T15:29:11.042095+00:00",
"last_modified": "2019-09-25T15:29:11.042095+00:00",
"metadata": {
"start_time": "2019-09-25T15:29:11.042095+00:00",
"duration": 30
}
}Changes
- info
added the media type
application/jsonfor the response with the status
- info