UC Create a Scheduled Recording
Motivation
A scheduled recording is a single recording which occurs only once and thus the most basic recording that can be created.
Description
Even for a single recording all objects described here are needed. Everything can be created with a single POST call on BookingDefinitions that contains all objects in the request body as shown in the example. Please refer to the “Writeable” column in the parameter tables on the element’s detailed description pages (under API Resources via Swagger ) to know which fields can be set and which are read only.
Reference
vidicontrol/schedulercore/swagger/index.html
Example
POST vidicontrol/schedulercore/SchedulerCore/BookingService/v1/BookingDefinitions
{
"bookings": [
{
"chunkList": [
{
"commandList": [
{
"capabilityId": "wl",
"deviceId": "0B",
"index": 0,
"handling": "WaitForResult",
"content": "{\"action\":\"Switch\",\"input\":{}}",
"commandType": "CapabilityRouter",
"inPortId": "XA"
},
{
"capabilityId": "0B",
"poolId": "0B",
"executionTime": "2023-09-13T16:00:00Z",
"duration": 3600,
"index": 1,
"handling": "WaitForResult",
"content": "{\"action\":\"Record\",\"input\":{}}",
"commandType": "CapabilityRecorder"
}
],
"metadata": "{\"timespan\":[{\"start\":\"-INF\",\"end\":\"\\u002BINF\",\"field\":[{\"name\":\"title\",\"value\":[{\"value\":\"Arvato Test API\"}],\"type\":null},{\"name\":\"V3_Category\",\"value\":[{\"value\":\"Entertainment\"}],\"type\":null}]}]}",
"title": "Arvato Test API"
}
],
}
],
"type": 0
}
Please note, that the title is set in two places:
In the metadata document provided in the
metadata
property (Line 27).In the
title
property (Line 28).
Both have to be set and both titles should be identical.
Response:
{
"id": "yPD2",
"bookings": [
{
"id": "jDOK",
"chunkList": [
{
"id": "MoP0",
"commandList": [
{
"id": "gpz2",
"capabilityId": "wl",
"poolId": null,
"deviceId": "0B",
"executionTime": "2023-09-13T15:59:58Z",
"duration": 2,
"index": 0,
"executionState": "Pending",
"handling": "WaitForResult",
"content": "{\"action\":\"Switch\",\"input\":{}}",
"commandType": "CapabilityRouter",
"inPortId": "XA",
"outPortId": "plY",
"routingList": []
},
{
"id": "RVwx",
"capabilityId": "0B",
"poolId": "0B",
"deviceId": "2n",
"executionTime": "2023-09-13T16:00:00Z",
"duration": 3600,
"index": 1,
"executionState": "Pending",
"handling": "WaitForResult",
"content": "{\"action\":\"Record\",\"input\":{}}",
"commandType": "CapabilityRecorder",
"inPortId": "XA",
"outPortId": null,
"routingList": []
}
],
"vcItemId": "",
"metadata": null,
"start": "2023-09-13T15:59:58Z",
"end": "2023-09-13T17:00:00Z",
"executionState": "Pending",
"title": "Arvato Test API",
"clipId": null,
"parentInfo": {
"bookingId": "jDOK",
"bookingDefinitionId": "yPD2",
"bookingDefinitionType": "Single"
}
}
],
"start": "2023-09-13T15:59:58Z",
"end": "2023-09-13T17:00:00Z",
"vcItemSequenceId": "",
"metadata": null,
"bookingDefinitionId": "yPD2"
}
],
"vcCollectionId": "",
"parentVcCollectionId": "",
"metadata": null,
"start": "2023-09-13T15:59:58Z",
"end": "2023-09-13T17:00:00Z",
"recurrence": null,
"type": "Single"
}