Update a media
Changed onUpdate a media
Request
- Base URLhttps://api.jwplayer.com
- URLhttps://api.jwplayer.com/v2/sites/{site_id}/media/{media_id}/
- AuthAPI key in header Authorization
Path parameters
Unique identifier for a resource
Unique alphanumeric ID of the site
Unique identifier for a resource
Unique alphanumeric ID of the media
Request body
Example request
{
"metadata": {
"author": "Jane Doe",
"title": "My Media Title",
"description": "My media description",
"external_id": "myvideo123",
"duration": 437,
"permalink": "http://www.mysite.com",
"category": "Automotive",
"publish_start_date": "2018-10-03T21:19:36.602019+00:00",
"publish_end_date": "2018-10-03T21:19:36.602019+00:00",
"tags": [
"test1",
"happy1",
"one",
"two",
"four"
],
"custom_params": {
"param1": "value1"
}
},
"relationships": {
"protection_rule": {
"id": "Ny05CEfj"
}
}
}Response
Resource successfully updated
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",
"relationships": {
"protection_rule": {
"id": "Ny05CEfj"
}
},
"metadata": {
"title": "My Media Title",
"description": "My media description",
"author": "Jane Doe",
"permalink": "http://www.mysite.com",
"category": "Automotive",
"publish_start_date": "2018-10-03T21:19:36.602019+00:00",
"publish_end_date": "2018-10-03T21:19:36.602019+00:00",
"tags": [
"test1",
"happy1",
"one",
"two",
"four"
],
"custom_params": {
"param1": "value1"
},
"external_id": "myvideo123"
},
"status": "ready",
"media_type": "video",
"hosting_type": "hosted",
"error_message": "Something went wrong!",
"external_id": "myvideo123",
"duration": 437,
"trim_in_point": "00:00:01",
"trim_out_point": "00:01:00.123",
"source_url": "https://www.example.com/video.mp4",
"md5": "7f1d1d1c0e5b6a5f4c3b2a1908070605"
}Changes
- breaking
the
/response's property type changed fromobjectto no type for status - warning
removed the request property
/ - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added
subschema #2to the/response propertyallOflist for the response status
- breaking