PUT /cxf/pri/v1/capturedassets/{id}
Asset update
The PRI client will send a PUT request including the <id>
of an existing captured asset to the following URL:
http://<server>:<port>/<relative_path>/cxf/pri/v1/capturedassets/<id>
The PRI server must support partial updates whereby only the fields that need to be changed are included, and any unspecified fields retain the values provided in the preceding POST or PUT requests. Depending upon encoder capabilities, some updates may be refused, for example modification of captureStartDate
once the asset transfer to disk has begun.
Request headers
Header | Type | Description | Required value |
---|---|---|---|
Accept | String | application/json | Yes |
Content-Type | String | application/json | Yes |
Query parameters
The query parameters must be empty.
Body
Attribute | Type | Description | Always present |
---|---|---|---|
| String | The friendly name of the CapturedAsset, for display purposes | No |
| dateTime | UTC timestamp of the start of the start-over session
| Yes |
| dateTime | UTC timestamp of the start of the start-over session
| Yes |
| Integer | The priority of the CapturedAsset, 1 highest to 5 lowest | No |
| String | Identifier of the capture requester | No |
| KeyValuePair | The metadata of the CapturedAsset, e.g.: <metadata> The PRI server (or adaptor) may supply | No |
| DrmTOType | Provides the DRM details to be used to secure the playable packaged asset for each of the packaging formats. Encoder dependent – if the encoder has its own independent configuration for defining DRM IDs (normally identical to the live streams), this object does not need to be provided. | No |
An example of a PUT JSON payload:
{
"captureStartDate": "2015-10-05T12:47:45.000Z",
"captureEndDate": "2015-10-05T12:47:46.000Z"
}
Success response
An HTTP 200 response occurs when captured asset is updated.
Error response
An HTTP 400 response occurs for a bad request.
An HTTP 500 response occurs when there is a PRI Adapter internal error (e.g., mandatory parameters are unspecified).
An HTTP 501 response occurs for method not implemented.
An HTTP 504 response occurs for encoder timeout.
An example error response for HTTP error code 501:
{
"statusCode": "501",
"statusMessage": "Internal Error ::Method Not Implemented"
}