Add rendition to a given item.
post
/content/management/api/v1.1/items/{id}/renditions
This is applicable only for Video plus items of DigitalAssetType category and only supports Asynchronous mode of interaction
Request
Supported Media Types
- application/json
Path Parameters
-
id: string
id of the item.
Query Parameters
-
links(optional): string
This parameter accepts a comma-separated list of link names. By default, this parameter gives all the links applicable. Possible values are: self, canonical, describedby
Header Parameters
-
X-Requested-With: string
A custom header to mitigate CSRF attacks.Allowed Values:
[ "XMLHttpRequest" ]
Rendition is added based on the given information in the payload.
Root Schema : rendition
Type:
object
rendition
Show Source
-
formats(optional):
array formats
formats of the rendition
-
links(optional):
array links
Links of rendition resource
-
name(optional):
string
name of the rendition
-
source(optional):
object renditionSource
renditionSource
-
type(optional):
string
type of the rendition
Nested Schema : links
Type:
array
Links of rendition resource
Show Source
-
Array of:
object Link
Link of the resource.
Nested Schema : renditionSource
Type:
object
renditionSource
Show Source
-
externalId(optional):
string
externalId
-
storageProvider(optional):
string
Allowed Values:
[ "kaltura" ]
source storageProvider of the externalId
Nested Schema : RenditionFormatBean
Type:
Show Source
object
-
format(optional):
string
format
-
links(optional):
array links
-
metadata(optional):
object Metadata
Metadata
-
mimeType(optional):
string
mimeType of the rendition format
-
size(optional):
integer(int32)
size
Nested Schema : Link
Type:
object
Link of the resource.
Show Source
-
href(optional):
string
The target resource's URI. It could be template URI. It is a required property in the get response.
-
mediaType(optional):
string
Media type.
-
method(optional):
string
What HTTP method can be used to access the target resource.
-
profile(optional):
string
Link to the metadata that describes the target resource.
-
rel(optional):
string
Relation type. It is a required property in the get response.
-
templated(optional):
boolean
Whether the URI is a template.
Response
Supported Media Types
- application/json
202 Response
Accepted.
400 Response
Bad request.
403 Response
Forbidden.
404 Response
Not found.
500 Response
Internal server error.
Examples
Example:
The following example shows how to add rendition to an item by submission of a POST request on the REST resource using cURL:
curl -X POST -H 'Content-Type: application/json' -H 'X-Requested-With: XMLHttpRequest' 'https://host:port/content/management/api/v1.1/items/CONTFFFEC388CFD044D8A34D2F8C46EA5786/renditions'
This add a new rendition to an item from an external source. Replace payload with your own data.
Request Payload
{ "name": "renditionName", "source": { "externalId": "2342135", "storageProvider": "kaltura" } }
Request Headers
{ "Content-Type": "application/json", "X-Requested-With": "XMLHttpRequest" }
Response Headers
{ "Location": "https://<hostname>/content/management/api/v1.1/items/CONTFFFEC388CFD044D8A34D2F8C46EA5786/renditions/.status/205D91EAEEDD46E8AEF6065EDBD1BED2" }