LC200_HTTP_API_v1.16 User Guide
This document describes available HTTP APIs provided by LC200.
Revision History
-
2021.03.26:
- Modify some HTTP API description.
-
2021.05.10:
- Add some HTTP API description.
-
2021.05.25:
- Add Camera control – Start / Stop tracking API
- Add Backup video to USB storage API
-
2021.05.28:
- Add Factory reset API
-
2021.09.17:
- Update POST/gui/usb_backup response status
- Update GET /system/firmware error code
- Add Front Panel Lock API
- Modify Macro GET/PUT API
-
2021.11.01:
- update API URL
-
2021.12.01:
- Add Recorder Pause / Resume API
- Add Bookmark API
- Add System front panel firmware info API
-
2022.05.12:
- Update Recorder Start API
- Add Recording upload API
- Add upload file status API
-
2022.06.23:
- Add channel info API
- Add Recording list API
- Add Snapshot list / info API
-
2022.11.18:
- Add Recorder Network Stream API
-
2023.05.16:
- Add Recorder storage API
-
2023.11.14:
- Add Recorder Network Stream PUT API
-
2024.12.03:
- Add CMS API
-
2025.06.12:
- Modify Schedule API some description.
-
2025.10.23:
- Add NAS mount API.
-
2026.10.21:
- Add GET/POST Upload Task by Status API.
Supported HTTP Methods
- GET
-
List all resource information
-
Retrieve one resource data
- POST
-
Create a new entry of resource
-
Perform a specific action provided by resources
-
Upload resources
- PUT
-
Replace entire resource and it’s elements
-
Update one resource data
- DELETE
- Delete a specific resource entry
HTTP Response Code Definitions
The following HTTP status codes are used to represent results of a client’s requests.
- Successful
-
200 OK
-
201 Created
-
202 Accepted
- Client Error
-
400 Bad Request
-
401 Unauthorized
-
403 Forbidden
-
404 Not Found
-
405 Method Not Allowed
-
409 Conflict
-
415 Unsupported Media Type
- Server Error
-
500 Internal Server Error
-
501 Not Implemented
API Authentication
In order to access LC200 devices via HTTP with security, an Authorization mechanism is necessary. Please check Authentication for more information.
Error Handling
When error occurs, the error message of the following format will be returned.
{
"code": 101,
"message": "Incorrect user name or password."
}
Authentication ¶
Token Based Authentication ¶
Get TokenPOST/api/token
Retrieve the authorization token for access APIs.
Example URI
Headers
Content-Type: application/jsonBody
{
"authorization": "YWRtaW46YWRtaW4=",
"tab_id": 12345
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"authorization": {
"type": "string",
"description": "The authorization string which is encoded by 'username:password' in base64."
},
"tab_id": {
"type": "number",
"description": "Tab id of browser. 0 if not given."
}
},
"required": [
"authorization"
]
}200Headers
Content-Type: application/jsonBody
{
"token": "MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"token": {
"type": "string",
"description": "The authorization token for accessing APIs."
}
}
}401Headers
Content-Type: application/jsonBody
{
"code": 101,
"message": "Incorrect user name or password."
}Channel ¶
Channel List ¶
List All ChannelsGET/api/channel
Retrieve all available channels.
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo200Headers
Content-Type: application/jsonBody
{
"result": [
{
"id": 1,
"name": "Content",
"source": 1,
"audio_source": 10,
"stream": "rtsp://10.2.50.121/channel1_847e40f03496",
"tracker": "1"
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"result": {
"type": "array",
"description": "Array of the channel objects"
}
}
}Recorder ¶
Recorder Status ¶
Get Recorder StatusGET/api/recorder/status
Retrieve current status of the recorder.
The available state are:
-
Stopped
-
Recording
-
Paused
-
NotReady
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo200Headers
Content-Type: application/jsonBody
{
"state": "Stopped",
"duration": 28,
"streams": [
{
"name": "movie1",
"destination": "file:///media/USB1/recording/2021_03_22_18_42_14/Movie.mp4",
"error": 0
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"state": {
"type": "string",
"description": "The recorder's status"
},
"duration": {
"type": "number",
"description": "Current streaming duration if recorder on streaming"
},
"streams": {
"type": "array",
"description": "Current streamings"
}
}
}Recorder Video Layout ¶
Get Video LayoutGET/api/recorder/layout
Retrieve current video layout of the recorder.
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo200Headers
Content-Type: application/jsonBody
{
"id": 1,
"auto": false
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "The layout ID"
},
"auto": {
"type": "boolean",
"description": "Apply auto layout or not"
}
}
}Set Video LayoutPUT/api/recorder/layout
Update current video layout of the recorder.
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQoBody
{
"id": 1,
"auto": false
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "The layout ID"
},
"auto": {
"type": "boolean",
"description": "Apply auto layout or not"
}
}
}200Headers
Content-Type: application/jsonBody
{
"id": 1,
"auto": false
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "The layout ID"
},
"auto": {
"type": "boolean",
"description": "Apply auto layout or not"
}
}
}400Headers
Content-Type: application/jsonBody
{
"code": 2,
"message": "Invalid request parameter."
}403Headers
Content-Type: application/jsonBody
{
"code": 515,
"message": "Recorder operation is not supported."
}405Headers
Content-Type: application/jsonBody
{
"code": 513,
"message": "Playback is streaming."
}409Headers
Content-Type: application/jsonBody
{
"code": 8,
"message": "Request can not be accomplished at this state."
}500Headers
Content-Type: application/jsonBody
{
"code": 11,
"message": "Fail to update the resource setting."
}Recorder Video Scene ¶
Set Video ScenePUT/api/recorder/theme
Update current video scene of the recorder.
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQoBody
{
"id": 1
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "The recorder's video theme ID"
}
}
}200Headers
Content-Type: application/jsonBody
{
"message": "Success."
}405Headers
Content-Type: application/jsonBody
{
"code": 513,
"message": "Playback is streaming."
}409Headers
Content-Type: application/jsonBody
{
"code": 8,
"message": "Request can not be accomplished at this state."
}500Headers
Content-Type: application/jsonBody
{
"code": 11,
"message": "Fail to update the resource setting."
}
{
"code": 501,
"message": "An error occurred in the recorder."
}Recording - Start ¶
Start RecordingPOST/api/recorder/start
Request the recorder to start a new recording.
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQoBody
{
"persist": false,
"filenames": {
"resource1": "Test1",
"resource2": "Test2",
"resource3": "Test3",
"resource4": "Test4",
"movie1": "Test_Movie"
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"persist": {
"type": "boolean",
"description": "To force recorder start/stop/pause/resume recording regardless of scheduler settings."
},
"filenames": {
"type": "object",
"properties": {
"resource1": {
"type": "string",
"description": "File stream resource1's filename to be replaced."
},
"resource2": {
"type": "string",
"description": "File stream resource2's filename to be replaced."
},
"resource3": {
"type": "string",
"description": "File stream resource3's filename to be replaced."
},
"resource4": {
"type": "string",
"description": "File stream resource4's filename to be replaced."
},
"movie1": {
"type": "string",
"description": "File stream movie1's filename to be replaced."
}
}
}
}
}200Headers
Content-Type: application/jsonBody
{
"start_time": "2021-03-22T15:30:56+8:00",
"streams": [
{
"name": "resource1",
"channel": "Content",
"destination": "file:///media/SATA/recording/2021_03_22_06_04_55/CH1_Content.mp4"
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"start_time": {
"type": "string",
"description": "The started date time in ISO 8691 format"
},
"streams": {
"type": "array"
}
}
}405Headers
Content-Type: application/jsonBody
{
"code": 508,
"message": "Ntp sync is running."
}
{
"code": 509,
"message": "Formatting is running."
}
{
"code": 510,
"message": "Firmware updating is running."
}
{
"code": 513,
"message": "Playback is streaming."
}
{
"code": 517,
"message": "Scheduler is on."
}409Headers
Content-Type: application/jsonBody
{
"code": 8,
"message": "Request can not be accomplished at this state."
}500Headers
Content-Type: application/jsonBody
{
"code": 9,
"message": "This request is timeout."
}
{
"code": 502
"message": "Failed to start recording or streaming."
}
{
"code": 507
"message": "Storage is not enough for new recording."
}
{
"code": 511
"message": "Recorder is too busy to perform the operation."
}
{
"code": 512
"message": "No streams available to start recording."
}
{
"code": 1302
"message": "The storage device is not found."
}Recording - Pause ¶
Pause RecordingPOST/api/recorder/pause
Request the recorder to pause the on-going recording.
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQoBody
{
"persist": false
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"persist": {
"type": "boolean",
"description": "To force recorder start/stop/pause/resume recording regardless of scheduler settings."
}
}
}200Headers
Content-Type: application/json405Headers
Content-Type: application/jsonBody
{
"code": 517,
"message": "Scheduler is on."
}409Headers
Content-Type: application/jsonBody
{
"code": 8,
"message": "Request can not be accomplished at this state."
}500Headers
Content-Type: application/jsonBody
{
"code": 9,
"message": "This request is timeout."
}
{
"code": 504,
"message": "Failed to pause recording or streaming."
}Recording - Resume ¶
Resume RecordingPOST/api/recorder/resume
Request the recorder to resume the paused recording.
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQoBody
{
"persist": false
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"persist": {
"type": "boolean",
"description": "To force recorder start/stop/pause/resume recording regardless of scheduler settings."
}
}
}200Headers
Content-Type: application/json405Headers
Content-Type: application/jsonBody
{
"code": 517,
"message": "Scheduler is on."
}409Headers
Content-Type: application/jsonBody
{
"code": 8,
"message": "Request can not be accomplished at this state."
}500Headers
Content-Type: application/jsonBody
{
"code": 9,
"message": "This request is timeout."
}
{
"code": 505,
"message": "Failed to resume recording or streaming."
}Recording - Stop ¶
Stop RecordingPOST/api/recorder/stop
Request the recorder to stop current recording.
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQoBody
{
"persist": false
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"persist": {
"type": "boolean",
"description": "To force recorder start/stop/pause/resume recording regardless of scheduler settings."
}
}
}200Headers
Content-Type: application/jsonBody
{
"start_time": "2021-03-22T15:30:56+8:00",
"stop_time": "2021-03-22T15:45:56+8:00",
"recording": 12,
"streams": [
{
"name": "resource1",
"channel": "Content",
"destination": "file:///media/SATA/recording/2021_03_22_06_04_55/CH1_Content.mp4"
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"start_time": {
"type": "string",
"description": "The started date time in ISO 8691 format"
},
"stop_time": {
"type": "string",
"description": "The stopped date time in ISO 8691 format"
},
"recording": {
"type": "number",
"description": "ID of the generated recording"
},
"streams": {
"type": "array"
}
}
}405Headers
Content-Type: application/jsonBody
{
"code": 517,
"message": "Scheduler is on."
}409Headers
Content-Type: application/jsonBody
{
"code": 8,
"message": "Request can not be accomplished at this state."
}500Headers
Content-Type: application/jsonBody
{
"code": 9,
"message": "This request is timeout."
}
{
"code": 503,
"message": "Failed to stop recording or streaming."
}Recorder Network Stream ¶
Get Network Stream ConfigurationGET/api/recorder/network_stream
Retrieve network stream configurations of the recorder.
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo200Headers
Content-Type: application/jsonBody
{
"enabled": false,
"mode": "off",
"destination": "rtmp://demo.Lumens.com/live/stream1",
"encode_profile": 1,
"audio_shift": 180,
"encryption": false,
"key_length": 128,
"passphrase": "JNWjfieORmnfHDEkF",
"latency": 125,
"source_port": 0,
"ttl": 1,
"secondary": {
"enabled": false,
"mode": "off",
"destination": "rtmp://demo.Lumens.com/live/stream2",
"encryption": false,
"key_length": 128,
"passphrase": "JNWjfieORmnfHDEkF",
"latency": 125,
"source_port": 0,
"ttl": 1
},
"tertiary": {
"enabled": false,
"mode": "off",
"destination": "rtmp://demo.Lumens.com/live/stream2",
"encryption": false,
"key_length": 128,
"passphrase": "JNWjfieORmnfHDEkF",
"latency": 125,
"source_port": 0,
"ttl": 1
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"description": "Network stream is enabled or not"
},
"mode": {
"type": "string",
"enum": [
"off",
"with_recording",
"always",
"user_control",
"usb_setting"
],
"description": "Streaming mode of the network stream"
},
"destination": {
"type": "string",
"description": "Destination of the network stream"
},
"encode_profile": {
"type": "number",
"description": "The encode profile ID"
},
"audio_shift": {
"type": "number",
"description": "Time of the audio shift value in milliseconds"
},
"encryption": {
"type": "boolean",
"description": "Network stream is encrypted or not (for SRT protocol only)"
},
"key_length": {
"type": "number",
"description": "Encryption key length of network stream (for SRT protocol only)"
},
"passphrase": {
"type": "string",
"description": "Encryption passphrase length of network stream (for SRT protocol only)"
},
"latency": {
"type": "number",
"description": "Network latency of network stream (for SRT protocol only)"
},
"source_port": {
"type": "number",
"description": "Source port network stream (for SRT protocol only)"
},
"ttl": {
"type": "number",
"description": "Time to live value for multicast streaming."
},
"secondary": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"description": "Network stream is enabled or not"
},
"mode": {
"type": "string",
"enum": [
"off",
"with_recording",
"always",
"user_control",
"usb_setting"
],
"description": "Streaming mode of the network stream"
},
"destination": {
"type": "string",
"description": "Destination of the network stream"
},
"encryption": {
"type": "boolean",
"description": "Network stream is encrypted or not (for SRT protocol only)"
},
"key_length": {
"type": "number",
"description": "Encryption key length of network stream (for SRT protocol only)"
},
"passphrase": {
"type": "string",
"description": "Encryption passphrase length of network stream (for SRT protocol only)"
},
"latency": {
"type": "number",
"description": "Network latency of network stream (for SRT protocol only)"
},
"source_port": {
"type": "number",
"description": "Source port network stream (for SRT protocol only)"
},
"ttl": {
"type": "number",
"description": "Time to live value for multicast streaming."
}
},
"description": "This field will show up if 2nd live stream exists"
},
"tertiary": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"description": "Network stream is enabled or not"
},
"mode": {
"type": "string",
"enum": [
"off",
"with_recording",
"always",
"user_control",
"usb_setting"
],
"description": "Streaming mode of the network stream"
},
"destination": {
"type": "string",
"description": "Destination of the network stream"
},
"encryption": {
"type": "boolean",
"description": "Network stream is encrypted or not (for SRT protocol only)"
},
"key_length": {
"type": "number",
"description": "Encryption key length of network stream (for SRT protocol only)"
},
"passphrase": {
"type": "string",
"description": "Encryption passphrase length of network stream (for SRT protocol only)"
},
"latency": {
"type": "number",
"description": "Network latency of network stream (for SRT protocol only)"
},
"source_port": {
"type": "number",
"description": "Source port network stream (for SRT protocol only)"
},
"ttl": {
"type": "number",
"description": "Time to live value for multicast streaming."
}
},
"description": "This field will show up if 3rd live stream exists"
}
}
}Set Network Stream ConfigurationPUT/api/recorder/network_stream{?apply}
Update network stream configurations of the recorder.
Example URI
- apply
number(optional)If apply is 1, this setting will be applied immediately.
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQoBody
{
"enabled": false,
"mode": "off",
"destination": "rtmp://demo.Lumens.com/live/stream1",
"encode_profile": 1,
"audio_shift": 180,
"encryption": false,
"key_length": 128,
"passphrase": "JNWjfieORmnfHDEkF",
"latency": 125,
"source_port": 0,
"ttl": 1,
"secondary": {
"enabled": false,
"mode": "off",
"destination": "rtmp://demo.Lumens.com/live/stream2",
"encryption": false,
"key_length": 128,
"passphrase": "JNWjfieORmnfHDEkF",
"latency": 125,
"source_port": 0,
"ttl": 1
},
"tertiary": {
"enabled": false,
"mode": "off",
"destination": "rtmp://demo.Lumens.com/live/stream2",
"encryption": false,
"key_length": 128,
"passphrase": "JNWjfieORmnfHDEkF",
"latency": 125,
"source_port": 0,
"ttl": 1
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"description": "Network stream is enabled or not"
},
"mode": {
"type": "string",
"enum": [
"off",
"with_recording",
"always",
"user_control",
"usb_setting"
],
"description": "Streaming mode of the network stream"
},
"destination": {
"type": "string",
"description": "Destination of the network stream"
},
"encode_profile": {
"type": "number",
"description": "The encode profile ID"
},
"audio_shift": {
"type": "number",
"description": "Time of the audio shift value in milliseconds"
},
"encryption": {
"type": "boolean",
"description": "Network stream is encrypted or not (for SRT protocol only)"
},
"key_length": {
"type": "number",
"description": "Encryption key length of network stream (for SRT protocol only)"
},
"passphrase": {
"type": "string",
"description": "Encryption passphrase length of network stream (for SRT protocol only)"
},
"latency": {
"type": "number",
"description": "Network latency of network stream (for SRT protocol only)"
},
"source_port": {
"type": "number",
"description": "Source port network stream (for SRT protocol only)"
},
"ttl": {
"type": "number",
"description": "Time to live value for multicast streaming."
},
"secondary": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"description": "Network stream is enabled or not"
},
"mode": {
"type": "string",
"enum": [
"off",
"with_recording",
"always",
"user_control",
"usb_setting"
],
"description": "Streaming mode of the network stream"
},
"destination": {
"type": "string",
"description": "Destination of the network stream"
},
"encryption": {
"type": "boolean",
"description": "Network stream is encrypted or not (for SRT protocol only)"
},
"key_length": {
"type": "number",
"description": "Encryption key length of network stream (for SRT protocol only)"
},
"passphrase": {
"type": "string",
"description": "Encryption passphrase length of network stream (for SRT protocol only)"
},
"latency": {
"type": "number",
"description": "Network latency of network stream (for SRT protocol only)"
},
"source_port": {
"type": "number",
"description": "Source port network stream (for SRT protocol only)"
},
"ttl": {
"type": "number",
"description": "Time to live value for multicast streaming."
}
},
"description": "This field will show up if 2nd live stream exists"
},
"tertiary": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"description": "Network stream is enabled or not"
},
"mode": {
"type": "string",
"enum": [
"off",
"with_recording",
"always",
"user_control",
"usb_setting"
],
"description": "Streaming mode of the network stream"
},
"destination": {
"type": "string",
"description": "Destination of the network stream"
},
"encryption": {
"type": "boolean",
"description": "Network stream is encrypted or not (for SRT protocol only)"
},
"key_length": {
"type": "number",
"description": "Encryption key length of network stream (for SRT protocol only)"
},
"passphrase": {
"type": "string",
"description": "Encryption passphrase length of network stream (for SRT protocol only)"
},
"latency": {
"type": "number",
"description": "Network latency of network stream (for SRT protocol only)"
},
"source_port": {
"type": "number",
"description": "Source port network stream (for SRT protocol only)"
},
"ttl": {
"type": "number",
"description": "Time to live value for multicast streaming."
}
},
"description": "This field will show up if 3rd live stream exists"
}
}
}200Headers
Content-Type: application/jsonBody
{
"enabled": false,
"mode": "off",
"destination": "rtmp://demo.Lumens.com/live/stream1",
"encode_profile": 1,
"audio_shift": 180,
"encryption": false,
"key_length": 128,
"passphrase": "JNWjfieORmnfHDEkF",
"latency": 125,
"source_port": 0,
"ttl": 1,
"secondary": {
"enabled": false,
"mode": "off",
"destination": "rtmp://demo.Lumens.com/live/stream2",
"encryption": false,
"key_length": 128,
"passphrase": "JNWjfieORmnfHDEkF",
"latency": 125,
"source_port": 0,
"ttl": 1
},
"tertiary": {
"enabled": false,
"mode": "off",
"destination": "rtmp://demo.Lumens.com/live/stream2",
"encryption": false,
"key_length": 128,
"passphrase": "JNWjfieORmnfHDEkF",
"latency": 125,
"source_port": 0,
"ttl": 1
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"description": "Network stream is enabled or not"
},
"mode": {
"type": "string",
"enum": [
"off",
"with_recording",
"always",
"user_control",
"usb_setting"
],
"description": "Streaming mode of the network stream"
},
"destination": {
"type": "string",
"description": "Destination of the network stream"
},
"encode_profile": {
"type": "number",
"description": "The encode profile ID"
},
"audio_shift": {
"type": "number",
"description": "Time of the audio shift value in milliseconds"
},
"encryption": {
"type": "boolean",
"description": "Network stream is encrypted or not (for SRT protocol only)"
},
"key_length": {
"type": "number",
"description": "Encryption key length of network stream (for SRT protocol only)"
},
"passphrase": {
"type": "string",
"description": "Encryption passphrase length of network stream (for SRT protocol only)"
},
"latency": {
"type": "number",
"description": "Network latency of network stream (for SRT protocol only)"
},
"source_port": {
"type": "number",
"description": "Source port network stream (for SRT protocol only)"
},
"ttl": {
"type": "number",
"description": "Time to live value for multicast streaming."
},
"secondary": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"description": "Network stream is enabled or not"
},
"mode": {
"type": "string",
"enum": [
"off",
"with_recording",
"always",
"user_control",
"usb_setting"
],
"description": "Streaming mode of the network stream"
},
"destination": {
"type": "string",
"description": "Destination of the network stream"
},
"encryption": {
"type": "boolean",
"description": "Network stream is encrypted or not (for SRT protocol only)"
},
"key_length": {
"type": "number",
"description": "Encryption key length of network stream (for SRT protocol only)"
},
"passphrase": {
"type": "string",
"description": "Encryption passphrase length of network stream (for SRT protocol only)"
},
"latency": {
"type": "number",
"description": "Network latency of network stream (for SRT protocol only)"
},
"source_port": {
"type": "number",
"description": "Source port network stream (for SRT protocol only)"
},
"ttl": {
"type": "number",
"description": "Time to live value for multicast streaming."
}
},
"description": "This field will show up if 2nd live stream exists"
},
"tertiary": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"description": "Network stream is enabled or not"
},
"mode": {
"type": "string",
"enum": [
"off",
"with_recording",
"always",
"user_control",
"usb_setting"
],
"description": "Streaming mode of the network stream"
},
"destination": {
"type": "string",
"description": "Destination of the network stream"
},
"encryption": {
"type": "boolean",
"description": "Network stream is encrypted or not (for SRT protocol only)"
},
"key_length": {
"type": "number",
"description": "Encryption key length of network stream (for SRT protocol only)"
},
"passphrase": {
"type": "string",
"description": "Encryption passphrase length of network stream (for SRT protocol only)"
},
"latency": {
"type": "number",
"description": "Network latency of network stream (for SRT protocol only)"
},
"source_port": {
"type": "number",
"description": "Source port network stream (for SRT protocol only)"
},
"ttl": {
"type": "number",
"description": "Time to live value for multicast streaming."
}
},
"description": "This field will show up if 3rd live stream exists"
}
}
}400Headers
Content-Type: application/jsonBody
{
"code": 2,
"message": "Invalid request parameter."
}
{
"code": 506,
"message": "Invalid encode profile setting."
}405Headers
Content-Type: application/jsonBody
{
"code": 513,
"message": "Playback is streaming."
}
{
"code": 516,
"message": "Conference is streaming."
}409Headers
Content-Type: application/jsonBody
{
"code": 8,
"message": "Request can not be accomplished at this state."
}500Headers
Content-Type: application/jsonBody
{
"code": 11,
"message": "Fail to update the resource setting."
}
{
"code": 14
"message": "Fail to restart the service."
}NetworkStream - Start ¶
Start StreamingPOST/api/recorder/network_stream/{name}/start
Request the recorder to start network stream.
Example URI
- name
string(required)The name of the desired network stream.(e.g.,live1/live2/live3)
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo200Headers
Content-Type: application/json500Headers
Content-Type: application/jsonBody
{
"code": 514,
"message": "No network streams available."
}NetworkStream - Stop ¶
Start StreamingPOST/api/recorder/network_stream/{name}/stop
Request the recorder to start network stream.
Example URI
- name
string(required)The Iname of the desired network stream.
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo200Headers
Content-Type: application/json500Headers
Content-Type: application/jsonBody
{
"code": 514,
"message": "No network streams available."
}Recorder Preview Stream ¶
Get Recorder Preview StreamGET/api/recorder/preview_stream
Retrieve preview stream information of the recorder.
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo200Headers
Content-Type: application/jsonBody
{
"url": "rtsp://10.2.50.121/movie_847e40f03496",
"others": [
{
"enabled": true,
"url": "srt://10.2.50.121:12345?mode=listener",
"encryption": false,
"key_length": 128,
"passphrase": "JNWjfieORmnfHDEkF",
"latency": 125,
"protocol": "srt"
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "Destination URL of the preview stream"
},
"others": {
"type": "array",
"description": "This field will show up if any other preview stream exists."
}
}
}Update Recorder Preview StreamPUT/api/recorder/preview_stream{?apply}
Updated preview stream information of the recorder.
Example URI
- apply
number(optional)If apply is 1, this setting will be applied immediately.
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQoBody
{
"url": "rtsp://10.2.50.121/movie_<MAC_ADDR>",
"others": [
{
"enabled": true,
"url": "srt://10.2.50.121:12345?mode=listener",
"encryption": false,
"key_length": 128,
"passphrase": "JNWjfieORmnfHDEkF",
"latency": 125,
"protocol": "srt"
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "Destination URL of the preview stream (IP will be replace by box ip and <MAC_ADDR> means box's mac address)"
},
"others": {
"type": "array",
"description": "This field will show up if any other preview stream exists."
}
}
}200Headers
Content-Type: application/jsonBody
{
"url": "rtsp://10.2.50.121/movie_847e40f03496",
"others": [
{
"enabled": true,
"url": "srt://10.2.50.121:12345?mode=listener",
"encryption": false,
"key_length": 128,
"passphrase": "JNWjfieORmnfHDEkF",
"latency": 125,
"protocol": "srt"
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "Destination URL of the preview stream"
},
"others": {
"type": "array",
"description": "This field will show up if any other preview stream exists."
}
}
}400Headers
Content-Type: application/jsonBody
{
"code": 2,
"message": "Invalid request parameter."
}500Headers
Content-Type: application/jsonBody
{
"code": 11,
"message": "Fail to update the resource setting."
}Recorder Metadata ¶
Get Recording MetadataGET/api/recorder/metadata
Retrieve current metadata values.
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo200Headers
Content-Type: application/jsonBody
[
{
"id": 1,
"name": "Subject",
"value": "Newbie Training"
}
]Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "array"
}Set Recording MetadataPUT/api/recorder/metadata
Update metadata values.
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQoBody
[
{
"id": 1,
"name": "Subject",
"value": "Newbie Training"
}
]Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "array"
}200Headers
Content-Type: application/jsonBody
{
"id": 1,
"name": "Subject",
"value": "Newbie Training"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "The recorder's metadata ID"
},
"name": {
"type": "string",
"description": "The recorder's metadata name"
},
"value": {
"type": "string",
"description": "The recorder's metadata value"
}
}
}400Headers
Content-Type: application/jsonBody
{
"code": 2,
"message": "Invalid request parameter."
}500Headers
Content-Type: application/jsonBody
{
"code": 11,
"message": "Fail to update the resource setting."
}Recorder Bookmark ¶
Add a BookmarkPOST/api/recorder/bookmark
Insert a bookmark for current recording.
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQoBody
{
"text": "My bookmark text",
"count": false
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"text": {
"type": "string",
"description": "The bookmark text"
},
"count": {
"type": "boolean",
"description": "Append counter info to text or not"
}
}
}200Headers
Content-Type: application/jsonBody
{
"message": "Success to add a bookmark."
}409Headers
Content-Type: application/jsonBody
{
"code": 8,
"message": "Request can not be accomplished at this state."
}500Headers
Content-Type: application/jsonBody
{
"code": 501,
"message": "An error occurred in the recorder."
}Recorder Storage ¶
Get Video StorageGET/recorder/storage
Retrieve current video storage of the recorder.
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo200Headers
Content-Type: application/jsonBody
{
"storage": "SATA",
"total_size": 315050344448,
"available_size": 298713026560,
"available_recording_time": 177009,
"cycling": true,
"sub_storage": {
"storage": "USB2",
"total_size": 1031065600,
"available_size": 969261056,
"available_recording_time": 425
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"storage": {
"type": "string",
"description": "The recorder's storage"
},
"total_size": {
"type": "number",
"description": "Total size on this storage device in byte"
},
"available_size": {
"type": "number",
"description": "Available size on this storage device in byte"
},
"available_recording_time": {
"type": "number",
"description": "Available recording time on thid storage device in second"
},
"cycling": {
"type": "boolean",
"description": "Cycling recording is enabled or not."
},
"sub_storage": {
"type": "object",
"properties": {
"storage": {
"type": "string",
"description": "The recorder's storage"
},
"total_size": {
"type": "number",
"description": "Total size on this storage device in byte"
},
"available_size": {
"type": "number",
"description": "Available size on this storage device in byte"
},
"available_recording_time": {
"type": "number",
"description": "Available recording time on thid storage device in second"
}
}
}
}
}Set Video StoragePUT/recorder/storage
Update current video storage of the recorder.
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQoBody
{
"storage": "SATA",
"total_size": 315050344448,
"available_size": 298713026560,
"available_recording_time": 177009,
"cycling": true,
"sub_storage": {
"storage": "USB2",
"total_size": 1031065600,
"available_size": 969261056,
"available_recording_time": 425
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"storage": {
"type": "string",
"description": "The recorder's storage"
},
"total_size": {
"type": "number",
"description": "Total size on this storage device in byte"
},
"available_size": {
"type": "number",
"description": "Available size on this storage device in byte"
},
"available_recording_time": {
"type": "number",
"description": "Available recording time on thid storage device in second"
},
"cycling": {
"type": "boolean",
"description": "Cycling recording is enabled or not."
},
"sub_storage": {
"type": "object",
"properties": {
"storage": {
"type": "string",
"description": "The recorder's storage"
},
"total_size": {
"type": "number",
"description": "Total size on this storage device in byte"
},
"available_size": {
"type": "number",
"description": "Available size on this storage device in byte"
},
"available_recording_time": {
"type": "number",
"description": "Available recording time on thid storage device in second"
}
}
}
}
}200Headers
Content-Type: application/jsonBody
{
"storage": "SATA",
"total_size": 315050344448,
"available_size": 298713026560,
"available_recording_time": 177009,
"cycling": true,
"sub_storage": {
"storage": "USB2",
"total_size": 1031065600,
"available_size": 969261056,
"available_recording_time": 425
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"storage": {
"type": "string",
"description": "The recorder's storage"
},
"total_size": {
"type": "number",
"description": "Total size on this storage device in byte"
},
"available_size": {
"type": "number",
"description": "Available size on this storage device in byte"
},
"available_recording_time": {
"type": "number",
"description": "Available recording time on thid storage device in second"
},
"cycling": {
"type": "boolean",
"description": "Cycling recording is enabled or not."
},
"sub_storage": {
"type": "object",
"properties": {
"storage": {
"type": "string",
"description": "The recorder's storage"
},
"total_size": {
"type": "number",
"description": "Total size on this storage device in byte"
},
"available_size": {
"type": "number",
"description": "Available size on this storage device in byte"
},
"available_recording_time": {
"type": "number",
"description": "Available recording time on thid storage device in second"
}
}
}
}
}404Headers
Content-Type: application/jsonBody
{
"code": 1302,
"message": "The storage device is not found."
}405Headers
Content-Type: application/jsonBody
{
"code": 513,
"message": "Playback is streaming."
}
{
"code": 516,
"message": "Conference is streaming."
}409Headers
Content-Type: application/jsonBody
{
"code": 8,
"message": "Request can not be accomplished at this state."
}
{
"code": 1305,
"message": "Storage formatting is running."
}
{
"code": 1309,
"message": "Storage is not formatted."
}415Headers
Content-Type: application/jsonBody
{
"code": 1303,
"message": "The storage device is not supported."
}500Headers
Content-Type: application/jsonBody
{
"code": 11,
"message": "Fail to update the resource setting."
}
{
"code": 1304,
"message": "Failed to format the storage."
}Recording ¶
Recording ¶
Get a Recording ResourceGET/api/recording/{id}
Retrieve a specific recording.
Example URI
- id
number(required)The ID of the desired recording resource.
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo200Headers
Content-Type: application/jsonBody
{
"id": 1,
"name": "2016-07-14-15-30-56",
"recorded_at": "2016-07-14T15:30:56+8:00",
"finished_at": "2016-07-14T15:45:56+8:00",
"length": 900,
"metadata": [
{
"name": "Subject",
"value": "Newbie Training"
}
],
"bookmark": [
{
"bookmark": [
{
"text": "bookmark 1",
"time": 10,
"snapshot": "http://10.2.50.115/download/SATA/recording/2016-07-14-15-30-56/bookmark_snapshots/10.jpg",
"category": "manual",
"description": "This is a bookmark"
}
]
}
],
"bookmark_file": "http://10.2.50.115/download/SATA/recording/2016-07-14-15-30-56/bookmark.json",
"metadata_file": "http://10.2.50.115/download/SATA/recording/2016-07-14-15-30-56/information.json",
"status": "ready",
"videos": [
{
"channel_id": 1,
"channel_name": "Content",
"playback_url": "http://10.2.50.115/playback/SATA/recording/2016-07-14-15-30-56/CH1-Content.mp4",
"download_url": "http://10.2.50.115/download/SATA/recording/2016-07-14-15-30-56/CH1-Content.mp4",
"format": "MP4",
"width": 1920,
"height": 1080,
"bit_rate": 4000,
"frame_rate": 30,
"size": 24761449,
"thumbnail": "http://10.2.50.115/download/SATA/recording/2016-07-14-15-30-56/CH1_Content.jpg"
}
],
"other_files": [
{
"filename": "CH1-Content.srt",
"playback_url": "http://10.2.50.115/playback/SATA/recording/2016-07-14-15-30-56/CH1-Content.srt",
"download_url": "http://10.2.50.115/download/SATA/recording/2016-07-14-15-30-56/CH1-Content.srt"
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "The recording's ID"
},
"name": {
"type": "string",
"description": "The recording's name"
},
"recorded_at": {
"type": "string",
"description": "The recording's started date time in ISO 8691 format"
},
"finished_at": {
"type": "string",
"description": "The recording's finished date time in ISO 8691 format"
},
"length": {
"type": "number",
"description": "The recording's length in seconds"
},
"metadata": {
"type": "array",
"description": "Array of the video metadata objects"
},
"bookmark": {
"type": "array",
"description": "Array of the video bookmark objects"
},
"bookmark_file": {
"type": "string",
"description": "The recording's bookmark file"
},
"metadata_file": {
"type": "string",
"description": "The recording's metadata file"
},
"status": {
"type": "string",
"enum": [
"ready",
"waiting",
"uploading",
"done",
"failed"
],
"description": "The recording's status"
},
"videos": {
"type": "array",
"description": "Array of the video objects"
},
"other_files": {
"type": "array",
"description": "Array of the other file objects"
}
}
}404Headers
Content-Type: application/jsonBody
{
"code": 6
"message": "The desired resource is not found."
}Recording List ¶
List All RecordingsGET/api/recording{?page,per_page}
Retrieve all available recordings.
Example URI
- page
number(optional) Default: 1Page number.
- per_page
number(optional) Default: 10Numbers of items to return per page. The maximum allowed value is 20.
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo200Headers
Content-Type: application/jsonBody
{
"page_info": {
"total": 25,
"count": 10
},
"status_info": {
"waiting": 25,
"failed": 10
},
"result": [
{
"id": 1,
"name": "2016-07-14-15-30-56",
"recorded_at": "2016-07-14T15:30:56+8:00",
"finished_at": "2016-07-14T15:45:56+8:00",
"length": 900,
"metadata": [
{
"name": "Subject",
"value": "Newbie Training"
}
],
"bookmark": [
{
"bookmark": [
{
"text": "bookmark 1",
"time": 10,
"snapshot": "http://10.2.50.115/download/SATA/recording/2016-07-14-15-30-56/bookmark_snapshots/10.jpg",
"category": "manual",
"description": "This is a bookmark"
}
]
}
],
"bookmark_file": "http://10.2.50.115/download/SATA/recording/2016-07-14-15-30-56/bookmark.json",
"metadata_file": "http://10.2.50.115/download/SATA/recording/2016-07-14-15-30-56/information.json",
"status": "ready",
"videos": [
{
"channel_id": 1,
"channel_name": "Content",
"playback_url": "http://10.2.50.115/playback/SATA/recording/2016-07-14-15-30-56/CH1-Content.mp4",
"download_url": "http://10.2.50.115/download/SATA/recording/2016-07-14-15-30-56/CH1-Content.mp4",
"format": "MP4",
"width": 1920,
"height": 1080,
"bit_rate": 4000,
"frame_rate": 30,
"size": 24761449,
"thumbnail": "http://10.2.50.115/download/SATA/recording/2016-07-14-15-30-56/CH1_Content.jpg"
}
],
"other_files": [
{
"filename": "CH1-Content.srt",
"playback_url": "http://10.2.50.115/playback/SATA/recording/2016-07-14-15-30-56/CH1-Content.srt",
"download_url": "http://10.2.50.115/download/SATA/recording/2016-07-14-15-30-56/CH1-Content.srt"
}
]
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"page_info": {
"type": "object",
"properties": {
"total": {
"type": "number",
"description": "Total number of available recordings"
},
"count": {
"type": "number",
"description": "The number of results included in the response"
}
},
"description": "Paging information of the results"
},
"status_info": {
"type": "object",
"properties": {
"waiting": {
"type": "number",
"description": "The number of recordings waiting for uploading."
},
"failed": {
"type": "number",
"description": "The number of recordings failed to upload."
}
},
"description": "Status information of the results"
},
"result": {
"type": "array",
"description": "Array of the recording objects"
}
}
}Snapshot List ¶
Get all Snapshots and resourcesGET/api/recording/snapshot{?page,per_page,image_info}
Retrieve all cbox snapshots.
Example URI
- page
number(optional) Default: 1Page number.
- per_page
number(optional) Default: 10Numbers of items to return per page. The maximum allowed value is 20.
- image_info
number(optional) Default: 1Whether or not response data contains snapshot image informations.
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo200Headers
Content-Type: application/jsonBody
{
"page_info": {
"total": 25,
"count": 10
},
"status_info": {
"waiting": 25,
"failed": 10
},
"result": [
{
"id": 1,
"folder": "2018-07-18",
"size": 8505,
"status": "ready",
"images": [
{
"id": 1,
"channel_id": 1,
"channel_name": "Content",
"playback_url": "http://10.2.50.115/playback/SATA/snapshot/2018-07-18/2018_07_18_16_13_08.jpg",
"download_url": "http://10.2.50.115/download/SATA/snapshot/2018-07-18/2018_07_18_16_13_08.jpg",
"format": "JPG",
"width": 1920,
"height": 1080,
"size": 137729,
"status": "ready"
}
],
"image_page_info": {
"total": 25,
"count": 10
},
"image_status_info": {
"waiting": 25,
"failed": 10
},
"recording_thumbnail": "Hello, world!"
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"page_info": {
"type": "object",
"properties": {
"total": {
"type": "number",
"description": "Total number of available snapshots"
},
"count": {
"type": "number",
"description": "The number of results included in the response"
}
},
"description": "Paging information of the results"
},
"status_info": {
"type": "object",
"properties": {
"waiting": {
"type": "number",
"description": "The number of snapshots waiting for uploading."
},
"failed": {
"type": "number",
"description": "The number of snapshots failed to upload."
}
},
"description": "Status information of the snapshots"
},
"result": {
"type": "array",
"description": "Array of the snapshot objects"
}
}
}Snapshot ¶
Get snapshots and resourceGET/api/recording/snapshot/{id}{?page,per_page,image_info}
Retrieve a specific cbox snapshots.
Example URI
- id
number(required)The ID of the desired snapshot resource.
- page
number(optional) Default: 1Image page number.
- per_page
number(optional) Default: 10Numbers of images items to return per page. The maximum allowed value is 20.
- image_info
number(optional) Default: 1Whether or not response data contains snapshot image informations.
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo200Headers
Content-Type: application/jsonBody
{
"id": 1,
"folder": "2018-07-18",
"size": 8505,
"status": "ready",
"images": [
{
"id": 1,
"channel_id": 1,
"channel_name": "Content",
"playback_url": "http://10.2.50.115/playback/SATA/snapshot/2018-07-18/2018_07_18_16_13_08.jpg",
"download_url": "http://10.2.50.115/download/SATA/snapshot/2018-07-18/2018_07_18_16_13_08.jpg",
"format": "JPG",
"width": 1920,
"height": 1080,
"size": 137729,
"status": "ready"
}
],
"image_page_info": {
"total": 25,
"count": 10
},
"image_status_info": {
"waiting": 25,
"failed": 10
},
"recording_thumbnail": "Hello, world!"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "The snapshot's ID"
},
"folder": {
"type": "string",
"description": "The snapshot's folder name"
},
"size": {
"type": "number",
"description": "Size of total size of images of this snapshot"
},
"status": {
"type": "string",
"enum": [
"ready",
"waiting",
"uploading",
"done",
"failed"
],
"description": "The snapshot's status"
},
"images": {
"type": "array",
"description": "Array of the snapshot image objects"
},
"image_page_info": {
"type": "object",
"properties": {
"total": {
"type": "number",
"description": "Total number of available images"
},
"count": {
"type": "number",
"description": "The number of results included in the response"
}
},
"description": "Paging information of the images"
},
"image_status_info": {
"type": "object",
"properties": {
"waiting": {
"type": "number",
"description": "The number of images waiting for uploading."
},
"failed": {
"type": "number",
"description": "The number of images failed to upload."
}
},
"description": "Status information of the images"
},
"recording_thumbnail": {
"type": "string",
"description": "`http://10.2.50.115/playback/SATA/recording/2016-07-14-15-30-56/Movie.mp4` (string) - Recording thumbnail, not visible if it does not belong to any recording."
}
}
}Storage ¶
Storage Device List ¶
List All Storage DevicesGET/api/storage
Retrieve all mounted storage devices.
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo200Headers
Content-Type: application/jsonBody
{
"result": [
{
"name": "SATA",
"manufacturer": "Seagate",
"uuid": "1e886531-44a3-427e-8da6-ba3aaa88a1d7",
"format": "ext4",
"mounted": true,
"capacity": {
"total": 32907248,
"used": 444544
}
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"result": {
"type": "array"
}
}
}Storage Device ¶
Get a Storage DeviceGET/api/storage/{name}
Retrieve a specific storage device.
Example URI
- name
string(required)Name of the storage device.
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo200Headers
Content-Type: application/jsonBody
{
"name": "SATA",
"manufacturer": "Seagate",
"uuid": "1e886531-44a3-427e-8da6-ba3aaa88a1d7",
"format": "ext4",
"mounted": true,
"capacity": {
"total": 32907248,
"used": 444544
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the storage device"
},
"manufacturer": {
"type": "string",
"description": "Manufacturer of this storage device"
},
"uuid": {
"type": "string",
"description": "UUID of this storage device"
},
"format": {
"type": "string",
"description": "Filesystem format of this storage device"
},
"mounted": {
"type": "boolean",
"description": "storage mounted or not"
},
"capacity": {
"type": "object",
"properties": {
"total": {
"type": "number",
"description": "Total space of the storage device in bytes"
},
"used": {
"type": "number",
"description": "Used space of the storage device in bytes"
}
}
}
}
}404Headers
Content-Type: application/jsonBody
{
"code": 1302,
"message": "The storage device is not found."
}415Headers
Content-Type: application/jsonBody
{
"code": 1303,
"message": "The storage device is not supported."
}Network Storage Setting ¶
Get Network Storage SettingGET/api/storage/network/setting
Retrieve the setting of network storage.
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo200Headers
Content-Type: application/jsonBody
[
{
"enable": true,
"type": "nfs",
"address": "0.0.0.0",
"folder": "NFS",
"options": "nlock,vers=1.0",
"authorization": "YWRtaW46YWRtaW4=",
"port": 9527,
"domain": "TEST"
}
]Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "array"
}405Headers
Content-Type: application/jsonBody
{
"message": "The request is not allowed."
}Updaste Newtork Storage SettingPUT/api/storage/network/setting
Update the setting of network storage.
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQoBody
{
"enable": true,
"type": "nfs",
"address": "0.0.0.0",
"folder": "NFS",
"options": "nlock,vers=1.0",
"authorization": "YWRtaW46YWRtaW4=",
"port": 9527,
"domain": "TEST"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"enable": {
"type": "boolean",
"description": "Network storage enabled or not."
},
"type": {
"type": "string",
"description": "Network storage type."
},
"address": {
"type": "string",
"description": "Server address."
},
"folder": {
"type": "string",
"description": "Mount folder of server."
},
"options": {
"type": "string",
"description": "Additional options for related network storage type."
},
"authorization": {
"type": "string",
"description": "The authorization string which is encoded by 'username:password' in base64."
},
"port": {
"type": "number",
"description": "Port number for network storage. (will not show up if not been set)"
},
"domain": {
"type": "string",
"description": "Domain name for network storage. (will not show up if not been set)"
}
}
}200Headers
Content-Type: application/jsonBody
[
{
"enable": true,
"type": "nfs",
"address": "0.0.0.0",
"folder": "NFS",
"options": "nlock,vers=1.0",
"authorization": "YWRtaW46YWRtaW4=",
"port": 9527,
"domain": "TEST"
}
]Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "array"
}400Headers
Content-Type: application/jsonBody
{
"code": 2,
"message": "Invalid request parameter."
}405Headers
Content-Type: application/jsonBody
{
"message": "The request is not allowed."
}500Headers
Content-Type: application/jsonBody
{
"code": 10,
"message": "Fail to update the resource."
}
{
"code": 14,
"message": "Fail to restart the service."
}Apply Network Storage Setting ¶
Get Network Storage Setting Applying StatusGET/storage/network/setting/apply
Get Network Storage Setting Applying Status
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo200Headers
Content-Type: application/jsonBody
{
"message": "Network storage remount is done."
}
{
"message": "Success to remount network storage."
}500Headers
Content-Type: application/jsonBody
{
"code": 14,
"message": "Fail to restart the service."
}
{
"code": 1310,
"message": "Network storage is busy."
}Apply Network Storage SettingPOST/storage/network/setting/apply
Apply Current Network Storage Setting.
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo200Headers
Content-Type: application/jsonBody
{
"message": "Network storage remount starting."
}500Headers
Content-Type: application/jsonBody
{
"code": 14,
"message": "Fail to restart the service."
}
{
"code": 1310,
"message": "Network storage is busy."
}System ¶
System Host Name ¶
Get System's Host NameGET/api/system/hostname
Retrieve hostname of the device.
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo200Headers
Content-Type: application/jsonBody
{
"hostname": "LC200"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"hostname": {
"type": "string",
"description": "The device's host name"
}
}
}Set System's Host NamePUT/api/system/hostname
Update hostname of the device.
You must reboot the device for the changes to take effect.
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQoBody
{
"hostname": "LC200"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"hostname": {
"type": "string",
"description": "The device's host name"
}
}
}200Headers
Content-Type: application/jsonBody
{
"hostname": "LC200"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"hostname": {
"type": "string",
"description": "The device's host name"
}
}
}400Headers
Content-Type: application/jsonBody
{
"code": 1403,
"message": "Hostname input is null."
}405Headers
Content-Type: application/jsonBody
{
"code": 513,
"message": "Playback is streaming."
}
{
"code": 516,
"message": "Conference is streaming."
}409Headers
Content-Type: application/jsonBody
{
"code": 8,
"message": "Request can not be accomplished at this state."
}System Device Description ¶
Get Device DescriptionGET/api/system/description
Get device description
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo200Headers
Content-Type: application/jsonBody
{
"device_description": "LC200"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"device_description": {
"type": "string",
"description": "The device's description"
}
}
}Update Device DescriptionPUT/api/system/description
Update device description
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQoBody
{
"device_description": "LC200"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"device_description": {
"type": "string",
"description": "The device's description"
}
}
}200Headers
Content-Type: application/jsonBody
{
"device_description": "LC200"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"device_description": {
"type": "string",
"description": "The device's description"
}
}
}400Headers
Content-Type: application/jsonBody
{
"code": 2,
"message": "Invalid request parameter."
}405Headers
Content-Type: application/jsonBody
{
"code": 513,
"message": "Playback is streaming."
}
{
"code": 516,
"message": "Conference is streaming."
}409Headers
Content-Type: application/jsonBody
{
"code": 8,
"message": "Request can not be accomplished at this state."
}Firmware ¶
Get Firmware InformationGET/api/system/firmware
Retrieve the firmware information of the device.
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo200Headers
Content-Type: application/jsonBody
{
"version": "v4.8.0.14"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"version": {
"type": "string",
"description": "The device's firmware version"
}
}
}405Headers
Content-Type: application/jsonBody
{
"code": 510,
"message": "Firmware updating is running."
}500Headers
Content-Type: application/jsonBody
{
"code": 1409,
"message": "Update firmware fail."
}
{
"code": 1426,
"message": "Firmware model error."
}
{
"code": 1427,
"message": "Firmware version is the same."
}
{
"code": 1428,
"message": "Firmware image is invalid."
}
{
"code": 1429,
"message": "Memory is not enough for firmware updating."
}Update the FirmwarePUT/api/system/firmware
Update the firmware of the device.
Example URI
Headers
Content-Type: application/octet-stream
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQoBody
Binary Data200Headers
Content-Type: application/jsonBody
{
"message": "Firmware updating starts."
}405Headers
Content-Type: application/jsonBody
{
"code": 510,
"message": "Firmware updating is running."
}500Headers
Content-Type: application/jsonBody
{
"code": 1409,
"message": "Update firmware fail."
}System Service log ¶
Get System's Service logGET/api/system/service_log
Retrieve system’s service log.
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQoBody
{
"desc": "LC200"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"desc": {
"type": "string",
"description": "The device's description"
}
}
}200Headers
Content-Type: application/jsonBody
{
"download_url": "http://10.2.50.120/api/static/servicelog/Wayne5566_20180903085407.tar"
}System Debug log ¶
Get System's Debug logGET/api/system/debug_log
Retrieve system’s debug log.
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQoBody
{
"desc": "LC200"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"desc": {
"type": "string",
"description": "The device's description"
}
}
}200Headers
Content-Type: application/jsonBody
{
"download_url": "http://10.2.50.120/api/static/debuglog/Wayne5566_20180903085407.tar.dat"
}System Configuration ¶
Get All System's ConfigurationGET/api/system/configuration
Retrieve all system Configuration of the device.
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo200Headers
Content-Type: application/jsonBody
{
"download_url": "http://10.2.50.120/api/static/configuration/20180903085407.config"
}Update the ConfigurationPUT/api/system/configuration
Update the configuration of the device.
Example URI
Headers
Content-Type: application/octet-stream
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQoBody
Binary Data200Headers
Content-Type: application/jsonBody
{
"message": "Need reboot."
}Reboot ¶
Reboot SystemPOST/api/system/reboot
Make the device to perform the reboot process.
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo202Headers
Content-Type: application/jsonBody
{
"message": "System is rebooting."
}Wake up Schedule ¶
Get Wake up Schedule SettingGET/api/system/poweron/schedule
Retrieve wake up schedule setting.
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo200Headers
Content-Type: application/jsonBody
{
"enabled": false,
"time": "00:00"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"description": "Enabled or not"
},
"time": {
"type": "string",
"description": "Time to run power on/power off"
}
}
}405Headers
Content-Type: application/jsonBody
{
"code": 7,
"message": "Unsupported operation."
}Update Wake up Schedule SettingPUT/api/system/poweron/schedule
Update wake up schedule setting.
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQoBody
{
"enabled": false,
"time": "00:00"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"description": "Enabled or not"
},
"time": {
"type": "string",
"description": "Time to run power on/power off"
}
}
}200Headers
Content-Type: application/jsonBody
{
"enabled": false,
"time": "00:00"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"description": "Enabled or not"
},
"time": {
"type": "string",
"description": "Time to run power on/power off"
}
}
}405Headers
Content-Type: application/jsonBody
{
"code": 7,
"message": "Unsupported operation."
}500Headers
Content-Type: application/jsonBody
{
"code": 10,
"message": "Fail to update the resource."
}Standby Schedule ¶
Get Standby Schedule SettingGET/api/system/poweroff/schedule
Retrieve standby schedule setting.
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo200Headers
Content-Type: application/jsonBody
{
"enabled": false,
"time": "00:00"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"description": "Enabled or not"
},
"time": {
"type": "string",
"description": "Time to run power on/power off"
}
}
}405Headers
Content-Type: application/jsonBody
{
"code": 7,
"message": "Unsupported operation."
}Update Standby Schedule SettingPUT/api/system/poweroff/schedule
Update standby schedule setting.
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQoBody
{
"enabled": false,
"time": "00:00"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"description": "Enabled or not"
},
"time": {
"type": "string",
"description": "Time to run power on/power off"
}
}
}200Headers
Content-Type: application/jsonBody
{
"enabled": false,
"time": "00:00"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"description": "Enabled or not"
},
"time": {
"type": "string",
"description": "Time to run power on/power off"
}
}
}405Headers
Content-Type: application/jsonBody
{
"code": 7,
"message": "Unsupported operation."
}500Headers
Content-Type: application/jsonBody
{
"code": 10,
"message": "Fail to update the resource."
}System Local Date Time ¶
Get System's Local Date TimeGET/api/system/datetime
Retrieve current date and time of the device.
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo200Headers
Content-Type: application/jsonBody
{
"timezone": "Asia/Taipei",
"datetime": "2016-07-14T15:30:56+8:00",
"auto_update": true,
"ntp_server": "pool.ntp.org"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"timezone": {
"type": "string",
"description": "Time zone of the device"
},
"datetime": {
"type": "string",
"description": "Current date and time string of the device in ISO 8691 format"
},
"auto_update": {
"type": "boolean",
"description": "Automatically get date and time setting from the NTP server"
},
"ntp_server": {
"type": "string",
"description": "The NTP server"
}
}
}Set System's Local Date TimePUT/api/system/datetime
Update current date and time of the device.
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQoBody
{
"timezone": "Asia/Taipei",
"datetime": "2016-07-14T15:30:56+8:00",
"auto_update": true,
"ntp_server": "pool.ntp.org"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"timezone": {
"type": "string",
"description": "Time zone of the device"
},
"datetime": {
"type": "string",
"description": "Current date and time string of the device in ISO 8691 format"
},
"auto_update": {
"type": "boolean",
"description": "Automatically get date and time setting from the NTP server"
},
"ntp_server": {
"type": "string",
"description": "The NTP server"
}
}
}200Headers
Content-Type: application/jsonBody
{
"timezone": "Asia/Taipei",
"datetime": "2016-07-14T15:30:56+8:00",
"auto_update": true,
"ntp_server": "pool.ntp.org"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"timezone": {
"type": "string",
"description": "Time zone of the device"
},
"datetime": {
"type": "string",
"description": "Current date and time string of the device in ISO 8691 format"
},
"auto_update": {
"type": "boolean",
"description": "Automatically get date and time setting from the NTP server"
},
"ntp_server": {
"type": "string",
"description": "The NTP server"
}
}
}405Headers
Content-Type: application/jsonBody
{
"code": 513,
"message": "Playback is streaming."
}
{
"code": 516,
"message": "Conference is streaming."
}409Headers
Content-Type: application/jsonBody
{
"code": 8,
"message": "Request can not be accomplished at this state."
}500Headers
Content-Type: application/jsonBody
{
"code": 1405,
"message": "Set timezone fail."
}
{
"code": 1406,
"message": "Set auto update fail."
}
{
"code": 1407,
"message": "Set ntp server fail."
}
{
"code": 1408,
"message": "Set time fail."
}
{
"code": 1423,
"message": "Sync time fail."
}Reset ¶
Set Box to ResetPOST/api/system/reset
Make box to reset when next power on.
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo200Headers
Content-Type: application/jsonBody
{
"message": "Need reboot."
}System Front Panel ¶
Get System's Front Panel SettingGET/api/system/front_panel
Retrieve front panel setting.
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo200Headers
Content-Type: application/jsonBody
{
"lock": false
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"lock": {
"type": "boolean",
"description": "lock mode of front panel"
}
}
}Set System's Front Panel SettingPUT/api/system/front_panel
Update front panel setting.
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQoBody
{
"lock": false
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"lock": {
"type": "boolean",
"description": "lock mode of front panel"
}
}
}200Headers
Content-Type: application/jsonBody
{
"lock": false
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"lock": {
"type": "boolean",
"description": "lock mode of front panel"
}
}
}System Front Panel Firmware ¶
Get System's Front Panel Firmware InformationGET/api/system/front_panel/firmware
Retrieve the front panel firmware information of the device.
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo200Headers
Content-Type: application/jsonBody
{
"version": "VLW003"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"version": {
"type": "string",
"description": "The front panel firmware version"
}
}
}405Headers
Content-Type: application/jsonBody
{
"code": 510,
"message": "Firmware updating is running."
}500Headers
Content-Type: application/jsonBody
{
"code": 1409,
"message": "Update firmware fail."
}
{
"code": 1428,
"message": "Firmware image is invalid."
}Update the Sytem's Front Panel FirmwarePUT/api/system/front_panel/firmware
Update the system front panel firmware of the device.
Example URI
Headers
Content-Type: application/octet-stream
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQoBody
Binary Data200Headers
Content-Type: application/jsonBody
{
"message": "Firmware updating starts."
}405Headers
Content-Type: application/jsonBody
{
"code": 510,
"message": "Firmware updating is running."
}500Headers
Content-Type: application/jsonBody
{
"code": 1409,
"message": "Update firmware fail."
}System FPGA ¶
Get System's FPGA versionGET/api/system/fpga
Retrieve FPGA version.
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo200Headers
Content-Type: application/jsonBody
{
"aduio": "v97.43.89",
"sdi": "v33.6.4"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"aduio": {
"type": "string",
"description": "The FPGA's audio firmware version"
},
"sdi": {
"type": "string",
"description": "The FPGA's sdi firmware version"
}
}
}Upload ¶
Upload Configuration ¶
Upload Mode
| Mode | Description | Manual Upload |
|---|---|---|
| off | Disable auto uploader | Upload immediately |
| immediate | Upload immediately after recording complete | Upload immediately |
| scheduled | Upload recording when time is in the right time | Upload in the right time |
Upload Extra settings properties_json Key
| Key | Content |
|---|---|
| kaltura_session_mode | LOGIN_IDPW, ADMIN_SECRET, APP_TOKEN |
| kaltura_hash_method | MD5, SHA1, SHA256, SHA512 |
Get Upload SettingGET/api/upload
Retrieve the uploading configuration
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo200Headers
Content-Type: application/jsonBody
{
"mode": "off",
"time": "22:00-05:00",
"destination": "protocol://domain\\user:password@192.168.100.50:21/recording",
"auth_type": "normal",
"user_id": "AbCdEfGh",
"delete_file": true,
"upload_file_type": "all",
"folder_id": "6e2b0e73-e604-4f10-91fe-ac0200acb81c",
"workflow_id": "fast",
"series_id": "3ea01d19-b9cf-4fe4-b400-fbf3acdcc9f9",
"flavor_mapping": "[{\"name\":\"Movie\",\"value\":\"mixed/source\"},{\"name\":\"CH1\",\"value\":\"presentation/source\"},{\"name\":\"CH2\",\"value\":\"presenter/source\"},{\"name\":\"CH3\",\"value\":\"audience/source\"},{\"name\":\"CH4\",\"value\":\"audience/source\"}]",
"partner_id": "2345078",
"properties_json: `{\"kaltura_session_mode\":\"LOGIN_IDPW\", \"kaltura_hash_method\"": "\"SHA512\"}`"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"mode": {
"type": "string",
"enum": [
"off",
"immediate",
"scheduled"
],
"description": "Uploading mode."
},
"time": {
"type": "string",
"description": "Time interval in 24 hour clock format to upload files if mode is scheduled. If end_time is not set, default end_time 24:00 will be used."
},
"destination": {
"type": "string",
"description": "The uploading destination URL with domain, username, password, path are URL encoded."
},
"auth_type": {
"type": "string",
"enum": [
"normal",
"anonymous",
"key"
],
"description": "Authorization type of uploader connection."
},
"user_id": {
"type": "string",
"description": "User ID for kaltura uploading."
},
"delete_file": {
"type": "boolean",
"description": "To delete files after uploading successfully finished."
},
"upload_file_type": {
"type": "string",
"enum": [
"all"
],
"description": "File type to be uploaded."
},
"folder_id": {
"type": "string",
"description": "Folder ID for Panopto uploading."
},
"workflow_id": {
"type": "string",
"description": "Workflow ID for opencast uploading."
},
"series_id": {
"type": "string",
"description": "Series ID for opencast uploading."
},
"flavor_mapping": {
"type": "string",
"description": "Flavor mapping rule for opencast uploading."
},
"partner_id": {
"type": "string",
"description": "Partner ID for Kaltura setting."
},
"properties_json: `{\"kaltura_session_mode\":\"LOGIN_IDPW\", \"kaltura_hash_method\"": {
"type": "string",
"description": "extra settings in JSON format."
}
}
}Set Upload SettingPUT/api/upload
Update the uploading configuration
Kaltura Session Mode:
ADMIN_SECRET: Partner ID set to destination user, Admin Secret set to destination password.
APP_TOKEN: id set to destination user, token set to destination password.
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQoBody
{
"mode": "off",
"time": "22:00-05:00",
"destination": "protocol://domain\\user:password@192.168.100.50:21/recording",
"auth_type": "normal",
"user_id": "AbCdEfGh",
"delete_file": true,
"upload_file_type": "all",
"folder_id": "6e2b0e73-e604-4f10-91fe-ac0200acb81c",
"workflow_id": "fast",
"series_id": "3ea01d19-b9cf-4fe4-b400-fbf3acdcc9f9",
"flavor_mapping": "[{\"name\":\"Movie\",\"value\":\"mixed/source\"},{\"name\":\"CH1\",\"value\":\"presentation/source\"},{\"name\":\"CH2\",\"value\":\"presenter/source\"},{\"name\":\"CH3\",\"value\":\"audience/source\"},{\"name\":\"CH4\",\"value\":\"audience/source\"}]",
"partner_id": "2345078",
"properties_json: `{\"kaltura_session_mode\":\"LOGIN_IDPW\", \"kaltura_hash_method\"": "\"SHA512\"}`"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"mode": {
"type": "string",
"enum": [
"off",
"immediate",
"scheduled"
],
"description": "Uploading mode."
},
"time": {
"type": "string",
"description": "Time interval in 24 hour clock format to upload files if mode is scheduled. If end_time is not set, default end_time 24:00 will be used."
},
"destination": {
"type": "string",
"description": "The uploading destination URL with domain, username, password, path are URL encoded."
},
"auth_type": {
"type": "string",
"enum": [
"normal",
"anonymous",
"key"
],
"description": "Authorization type of uploader connection."
},
"user_id": {
"type": "string",
"description": "User ID for kaltura uploading."
},
"delete_file": {
"type": "boolean",
"description": "To delete files after uploading successfully finished."
},
"upload_file_type": {
"type": "string",
"enum": [
"all"
],
"description": "File type to be uploaded."
},
"folder_id": {
"type": "string",
"description": "Folder ID for Panopto uploading."
},
"workflow_id": {
"type": "string",
"description": "Workflow ID for opencast uploading."
},
"series_id": {
"type": "string",
"description": "Series ID for opencast uploading."
},
"flavor_mapping": {
"type": "string",
"description": "Flavor mapping rule for opencast uploading."
},
"partner_id": {
"type": "string",
"description": "Partner ID for Kaltura setting."
},
"properties_json: `{\"kaltura_session_mode\":\"LOGIN_IDPW\", \"kaltura_hash_method\"": {
"type": "string",
"description": "extra settings in JSON format."
}
}
}200Headers
Content-Type: application/jsonBody
{
"mode": "off",
"time": "22:00-05:00",
"destination": "protocol://domain\\user:password@192.168.100.50:21/recording",
"auth_type": "normal",
"user_id": "AbCdEfGh",
"delete_file": true,
"upload_file_type": "all",
"folder_id": "6e2b0e73-e604-4f10-91fe-ac0200acb81c",
"workflow_id": "fast",
"series_id": "3ea01d19-b9cf-4fe4-b400-fbf3acdcc9f9",
"flavor_mapping": "[{\"name\":\"Movie\",\"value\":\"mixed/source\"},{\"name\":\"CH1\",\"value\":\"presentation/source\"},{\"name\":\"CH2\",\"value\":\"presenter/source\"},{\"name\":\"CH3\",\"value\":\"audience/source\"},{\"name\":\"CH4\",\"value\":\"audience/source\"}]",
"partner_id": "2345078",
"properties_json: `{\"kaltura_session_mode\":\"LOGIN_IDPW\", \"kaltura_hash_method\"": "\"SHA512\"}`"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"mode": {
"type": "string",
"enum": [
"off",
"immediate",
"scheduled"
],
"description": "Uploading mode."
},
"time": {
"type": "string",
"description": "Time interval in 24 hour clock format to upload files if mode is scheduled. If end_time is not set, default end_time 24:00 will be used."
},
"destination": {
"type": "string",
"description": "The uploading destination URL with domain, username, password, path are URL encoded."
},
"auth_type": {
"type": "string",
"enum": [
"normal",
"anonymous",
"key"
],
"description": "Authorization type of uploader connection."
},
"user_id": {
"type": "string",
"description": "User ID for kaltura uploading."
},
"delete_file": {
"type": "boolean",
"description": "To delete files after uploading successfully finished."
},
"upload_file_type": {
"type": "string",
"enum": [
"all"
],
"description": "File type to be uploaded."
},
"folder_id": {
"type": "string",
"description": "Folder ID for Panopto uploading."
},
"workflow_id": {
"type": "string",
"description": "Workflow ID for opencast uploading."
},
"series_id": {
"type": "string",
"description": "Series ID for opencast uploading."
},
"flavor_mapping": {
"type": "string",
"description": "Flavor mapping rule for opencast uploading."
},
"partner_id": {
"type": "string",
"description": "Partner ID for Kaltura setting."
},
"properties_json: `{\"kaltura_session_mode\":\"LOGIN_IDPW\", \"kaltura_hash_method\"": {
"type": "string",
"description": "extra settings in JSON format."
}
}
}415Headers
Content-Type: application/jsonBody
{
"code": 1116,
"message": "Mode is not supported."
}
{
"code": 1119,
"message": "Protocol is not supported."
}500Headers
Content-Type: application/jsonBody
{
"code": 1117,
"message": "Set upload setting fail."
}Upload Supported Protocols ¶
Get Upload Supported ProtocolsGET/api/upload/support
Retrieve list of supported upload protocols
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo200Headers
Content-Type: application/jsonBody
{
"protocol": [
"ftp",
"sftp",
"filecruiser",
"filecruiser-secure",
"opencast",
"opencast-secure",
"panopto",
"kaltura",
"writefile"
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"protocol": {
"type": "array",
"description": "Supported protocols"
}
}
}Upload Connection Test ¶
Test Upload DestinationPOST/api/upload/test
Test connection of the uploading destination
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQoBody
{
"destination": "protocol://domain\\user:password@192.168.100.50:21/recording",
"auth_type": "normal"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"destination": {
"type": "string",
"description": "The uploading destination URL with domain, username, password, path are URL encoded."
},
"auth_type": {
"type": "string",
"enum": [
"normal",
"anonymous",
"key"
],
"description": "Authorization type of uploader connection."
}
}
}200Headers
Content-Type: application/json415Headers
Content-Type: application/jsonBody
{
"code": 1119,
"message": "Protocol is not supported."
}500Headers
Content-Type: application/jsonBody
{
"code": 1100,
"message": "Upload General Error."
}
{
"code": 1101,
"message": "Upload Port Error."
}
{
"code": 1102,
"message": "Upload Access Error."
}
{
"code": 1103,
"message": "Upload Connection Error."
}
{
"code": 1104,
"message": "Upload Send Error."
}
{
"code": 1105,
"message": "Upload Timeout Error."
}
{
"code": 1106,
"message": "Upload Disk Full."
}
{
"code": 1107,
"message": "Upload Format Error."
}
{
"code": 1108,
"message": "Upload Protocol Error."
}
{
"code": 1109,
"message": "Upload Bad Request."
}
{
"code": 1110,
"message": "Upload Unauthorized."
}
{
"code": 1111,
"message": "Upload Forbidden."
}
{
"code": 1112,
"message": "Upload Not Found."
}
{
"code": 1113,
"message": "Upload Length Required."
}
{
"code": 1114,
"message": "Upload Internal Server Error."
}Upload Task ¶
Get Current Upload TasksGET/api/upload/task
Retrieve list of existed uploading tasks
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo200Headers
Content-Type: application/jsonBody
{
"result": [
{
"id": 1,
"recording": 13,
"snapshot": 4,
"snapshot_image": 5
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"result": {
"type": "array"
}
}
}Add Files into the Upload TaskPOST/api/upload/task
Append list of recordings into the uploading task queue
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQoBody
{
"recording": [
13,
14
],
"snapshot": [
4,
5
],
"snapshot_image": [
5,
6
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"recording": {
"type": "array",
"description": "List of recordings will be added into uploading"
},
"snapshot": {
"type": "array",
"description": "List of snapshots will be added into uploading (Opencast upload do not suuport snapshot upload)"
},
"snapshot_image": {
"type": "array",
"description": "List of snapshot images will be added into uploading (Opencast upload do not suuport snapshot images upload)"
}
}
}200Headers
Content-Type: application/jsonBody
{
"message": "Successful to add upload task(s)"
}415Headers
Content-Type: application/jsonBody
{
"code": 1119,
"message": "Protocol is not supported."
}500Headers
Content-Type: application/jsonBody
{
"code": 1120,
"message": "Add upload task fail."
}Delete Upload TaskDELETE/api/upload/task
Delete list of recordings from uploading task queue
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQoBody
{
"recording": [
13,
14
],
"snapshot": [
4,
5
],
"snapshot_image": [
5,
6
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"recording": {
"type": "array",
"description": "List of recordings will be deleted from uploading"
},
"snapshot": {
"type": "array",
"description": "List of snapshots will be deleted drom uploading"
},
"snapshot_image": {
"type": "array",
"description": "List of snapshot images will be deleted drom uploading"
}
}
}200Headers
Content-Type: application/jsonBody
{
"message": "Successful to remove upload task(s)"
}500Headers
Content-Type: application/jsonBody
{
"code": 1121,
"message": "Delete upload task fail."
}Upload Task by Status ¶
Get Current Upload Tasks StatusGET/api/upload/task/status
Retrieve Current Upload Tasks Status
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo200Headers
Content-Type: application/jsonBody
{
"upload_status": "Done"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"upload_status": {
"type": "string",
"enum": [
"Done",
"Fail",
"Unfinished"
],
"description": "Upload Task Status."
}
}
}Add Files by status into the Upload TaskPOST/api/upload/task/status
Append list of recordings into the uploading task queue by its status
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQoBody
{
"recording": "failed",
"snapshot": "failed",
"snapshot_image": "failed"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"recording": {
"type": "string",
"description": "Status of recordings will be added into uploading"
},
"snapshot": {
"type": "string",
"description": "Status of snapshots will be added into uploading (Opencast upload do not suuport snapshot upload)"
},
"snapshot_image": {
"type": "string",
"description": "Status of snapshot images will be added into uploading (Opencast upload do not suuport snapshot images upload)"
}
}
}200Headers
Content-Type: application/jsonBody
{
"result": [
{
"id": 1,
"recording": 13,
"snapshot": 4,
"snapshot_image": 5
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"result": {
"type": "array"
}
}
}415Headers
Content-Type: application/jsonBody
{
"code": 1119,
"message": "Protocol is not supported."
}500Headers
Content-Type: application/jsonBody
{
"code": 1120,
"message": "Add upload task fail."
}Schedule ¶
Center Information ¶
Get Center InformationGET/api/schedule/center
Retrieve Center information.
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo200Headers
Content-Type: application/jsonBody
{
"url": "https://develop.opencast.org",
"username": "opencast_system_account",
"password": "CHANGE_ME",
"enable": true,
"type": "opencast",
"authentication_token": "e0Su2xlFvY0y94fyP3u4",
"text_overlay": true,
"proprietary_platform_settings": "\"{authentication_type\": \"application_token\", \"hash_type\": \"md5\", \"token_id\": \"1_g9kbs9wi\", \"token_value\": \"e729b05e9c1b24433607f8c016fbfbe7\", \"partner_id\": \"2633091\", \"administrator_secret\": \"a13908145282912f3886237ad816208a\"}"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "Address of the center"
},
"username": {
"type": "string",
"description": "The username"
},
"password": {
"type": "string",
"description": "The password"
},
"enable": {
"type": "boolean",
"description": "Indication the center is enabled or not"
},
"type": {
"type": "string",
"description": "Center type"
},
"authentication_token": {
"type": "string",
"description": "Token for authentication"
},
"text_overlay": {
"type": "boolean",
"description": "Enable/Disable text overlay"
},
"proprietary_platform_settings": {
"type": "string",
"description": "Proprietary platform settings. for kaltura: authentication_type: account_password, administrator_secret, application_token. hash_type: sha1, sha256, sha512, md5. token_id: application token id. token_value: application token value. partner_id: partner id. administrator_secret: for administrator_secret authentication_type."
}
}
}Update the Center settingPUT/api/schedule/center
Update the Center setting.
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQoBody
{
"url": "https://develop.opencast.org",
"username": "opencast_system_account",
"password": "CHANGE_ME",
"enable": true,
"type": "opencast",
"authentication_token": "e0Su2xlFvY0y94fyP3u4",
"text_overlay": true,
"proprietary_platform_settings": "\"{authentication_type\": \"application_token\", \"hash_type\": \"md5\", \"token_id\": \"1_g9kbs9wi\", \"token_value\": \"e729b05e9c1b24433607f8c016fbfbe7\", \"partner_id\": \"2633091\", \"administrator_secret\": \"a13908145282912f3886237ad816208a\"}"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "Address of the center"
},
"username": {
"type": "string",
"description": "The username"
},
"password": {
"type": "string",
"description": "The password"
},
"enable": {
"type": "boolean",
"description": "Indication the center is enabled or not"
},
"type": {
"type": "string",
"description": "Center type"
},
"authentication_token": {
"type": "string",
"description": "Token for authentication"
},
"text_overlay": {
"type": "boolean",
"description": "Enable/Disable text overlay"
},
"proprietary_platform_settings": {
"type": "string",
"description": "Proprietary platform settings. for kaltura: authentication_type: account_password, administrator_secret, application_token. hash_type: sha1, sha256, sha512, md5. token_id: application token id. token_value: application token value. partner_id: partner id. administrator_secret: for administrator_secret authentication_type."
}
}
}200Headers
Content-Type: application/jsonBody
{
"message": "Success."
}400Headers
Content-Type: application/jsonBody
{
"code": 1702,
"message": "Invalid scheduler setting."
}405Headers
Content-Type: application/jsonBody
{
"code": 513,
"message": "Playback is streaming."
}
{
"code": 516,
"message": "Conference is streaming."
}409Headers
Content-Type: application/jsonBody
{
"code": 8,
"message": "Request can not be accomplished at this state."
}500Headers
Content-Type: application/jsonBody
{
"code": 1701,
"message": "An scheduler error occurred."
}Agent Information ¶
Get Agent InformationGET/api/schedule/agent
Retrieve Agent information.
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo200Headers
Content-Type: application/jsonBody
{
"name": "cbox",
"frequency": 1800
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The agent's name"
},
"frequency": {
"type": "number",
"description": "synchronization frequency"
}
}
}Update the Agent settingPUT/api/schedule/agent
Update the Agent setting.
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQoBody
{
"name": "cbox",
"frequency": 1800
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The agent's name"
},
"frequency": {
"type": "number",
"description": "synchronization frequency"
}
}
}200Headers
Content-Type: application/jsonBody
{
"message": "Success."
}400Headers
Content-Type: application/jsonBody
{
"code": 1702,
"message": "Invalid scheduler setting."
}405Headers
Content-Type: application/jsonBody
{
"code": 513,
"message": "Playback is streaming."
}
{
"code": 516,
"message": "Conference is streaming."
}409Headers
Content-Type: application/jsonBody
{
"code": 8,
"message": "Request can not be accomplished at this state."
}500Headers
Content-Type: application/jsonBody
{
"code": 1701,
"message": "An scheduler error occurred."
}Schedule Webcast Setting ¶
Get Schedule Webcast SettingGET/api/schedule/webcast
Retrieve schedule webcast setting.
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo200Headers
Content-Type: application/jsonBody
{
"pgm": "enabled",
"channel1": "enabled",
"channel2": "enabled",
"channel3": "enabled",
"channel4": "enabled"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"pgm": {
"type": "string",
"enum": [
"enabled",
"disabled",
"not_supported"
],
"description": "PGM webcast stream mode"
},
"channel1": {
"type": "string",
"enum": [
"enabled",
"disabled",
"not_supported"
],
"description": "Channel 1 webcast stream mode"
},
"channel2": {
"type": "string",
"enum": [
"enabled",
"disabled",
"not_supported"
],
"description": "Channel 2 webcast stream mode"
},
"channel3": {
"type": "string",
"enum": [
"enabled",
"disabled",
"not_supported"
],
"description": "Channel 3 webcast stream mode"
},
"channel4": {
"type": "string",
"enum": [
"enabled",
"disabled",
"not_supported"
],
"description": "Channel 4 webcast stream mode"
}
}
}405Headers
Content-Type: application/jsonBody
{
"code": 7,
"message": "Unsupported operation."
}Update Schedule Webcast SettingPUT/api/schedule/webcast
Update schedule webcast setting.
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQoBody
{
"pgm": "enabled",
"channel1": "enabled",
"channel2": "enabled",
"channel3": "enabled",
"channel4": "enabled"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"pgm": {
"type": "string",
"enum": [
"enabled",
"disabled"
],
"description": "PGM webcast stream mode"
},
"channel1": {
"type": "string",
"enum": [
"enabled",
"disabled"
],
"description": "Channel 1 webcast stream mode"
},
"channel2": {
"type": "string",
"enum": [
"enabled",
"disabled"
],
"description": "Channel 2 webcast stream mode"
},
"channel3": {
"type": "string",
"enum": [
"enabled",
"disabled"
],
"description": "Channel 3 webcast stream mode"
},
"channel4": {
"type": "string",
"enum": [
"enabled",
"disabled"
],
"description": "Channel 4 webcast stream mode"
}
}
}200Headers
Content-Type: application/jsonBody
{
"pgm": "enabled",
"channel1": "enabled",
"channel2": "enabled",
"channel3": "enabled",
"channel4": "enabled"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"pgm": {
"type": "string",
"enum": [
"enabled",
"disabled",
"not_supported"
],
"description": "PGM webcast stream mode"
},
"channel1": {
"type": "string",
"enum": [
"enabled",
"disabled",
"not_supported"
],
"description": "Channel 1 webcast stream mode"
},
"channel2": {
"type": "string",
"enum": [
"enabled",
"disabled",
"not_supported"
],
"description": "Channel 2 webcast stream mode"
},
"channel3": {
"type": "string",
"enum": [
"enabled",
"disabled",
"not_supported"
],
"description": "Channel 3 webcast stream mode"
},
"channel4": {
"type": "string",
"enum": [
"enabled",
"disabled",
"not_supported"
],
"description": "Channel 4 webcast stream mode"
}
}
}405Headers
Content-Type: application/jsonBody
{
"code": 7,
"message": "Unsupported operation."
}409Headers
Content-Type: application/jsonBody
{
"code": 8,
"message": "Request can not be accomplished at this state."
}500Headers
Content-Type: application/jsonBody
{
"code": 10,
"message": "Fail to update the resource."
}
{
"code": 11,
"message": "Fail to update the resource setting."
}Delete Agent ¶
Delete AgentPOST/api/schedule/delete_agent
Delete Schedule Agent
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo200Headers
Content-Type: application/json500Headers
Content-Type: application/jsonBody
{
"code": 1701,
"message": "An scheduler error occurred."
}Camera ¶
Camera Move ¶
Move a Camera DevicePOST/api/camera/{id}/move
Control a specific camera device to move.
Example URI
- id
number(required)ID of the desired camera resource.
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQoBody
{
"type": "continuous",
"pan": 1,
"tilt": 1,
"zoom": 1,
"preset": 0,
"speed": 2,
"focus": 1
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"continuous",
"absolute",
"home",
"preset",
"focus"
],
"description": "Type of the movement."
},
"pan": {
"type": "number",
"description": "(float number) Pan speed for continuous move. In absolute move, it represents pan coordinate of the destination. No use for home, focus and preset movement."
},
"tilt": {
"type": "number",
"description": "(float number) Tilt speed for continuous move. In absolute move, it represents tilt coordinate of the destination. No use for home, focus and preset movement."
},
"zoom": {
"type": "number",
"description": "(float number) Zoom speed for continuous move. In absolute move, it represents zoom coordinate of the destination. No use for home, focus and preset movement."
},
"preset": {
"type": "number",
"description": "The preset destination ID for preset movement."
},
"speed": {
"type": "number",
"description": "(float number) Speed of the movement for absolute, home and preset movement."
},
"focus": {
"type": "number",
"description": "(integer number) For focus move only, positive value means focus far and negative means focus near."
}
}
}200Headers
Content-Type: application/json400Headers
Content-Type: application/jsonBody
{
"code": 3,
"message": "Missing required parameter."
}404Headers
Content-Type: application/jsonBody
{
"code": 6,
"message": "The desired resource is not found."
}500Headers
Content-Type: application/jsonBody
{
"code": 1201,
"message": "Error occurrs on device operation."
}Stop Camera Movement ¶
Stop Moving of a Camera DevicePOST/api/camera/{id}/stop
Control a specific camera device to stop immediately.
Example URI
- id
number(required)ID of the desired camera resource.
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQoBody
{
"moving": "zoom"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"moving": {
"type": "string",
"enum": [
"zoom",
"pantilt",
"focus"
],
"description": "Type of moving to be stopped. All moving will stop if moving is not specified. (pan, tilt can not be stopped separately)"
}
}
}200Headers
Content-Type: application/json404Headers
Content-Type: application/jsonBody
{
"code": 6,
"message": "The desired resource is not found."
}500Headers
Content-Type: application/jsonBody
{
"code": 1201,
"message": "Error occurrs on device operation."
}Camera Set Preset ¶
Make Camera to Save Current Position as a PresetPUT/api/camera/{id}/preset
Save current position into a specific preset.
Example URI
- id
number(required)ID of the desired camera resource.
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQoBody
{
"type": "preset",
"preset": 5
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"preset",
"home"
],
"description": "Type of the saving preset."
},
"preset": {
"type": "number",
"description": "Preset ID."
}
}
}200Headers
Content-Type: application/json400Headers
Content-Type: application/jsonBody
{
"code": 3,
"message": "Missing required parameter."
}404Headers
Content-Type: application/jsonBody
{
"code": 6,
"message": "The desired resource is not found."
}500Headers
Content-Type: application/jsonBody
{
"code": 1201,
"message": "Error occurrs on device operation."
}Camera Tracking ¶
Enable/Disable camera tracking.POST/api/camera/{id}/tracking
Enable/Disable specific camera’s tracking mode.
Example URI
- id
number(required)ID of the desired camera resource.
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQoBody
{
"enable": true
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"enable": {
"type": "boolean",
"description": "Enable/Disable camera tracking."
}
}
}200Headers
Content-Type: application/json400Headers
Content-Type: application/jsonBody
{
"code": 3,
"message": "Missing required parameter."
}404Headers
Content-Type: application/jsonBody
{
"code": 6,
"message": "The desired resource is not found."
}500Headers
Content-Type: application/jsonBody
{
"code": 1201,
"message": "Error occurrs on device operation."
}External Device ¶
LC RC01 Macro Setting List ¶
List All LC RC01 Macro SettingsGET/api/external_device/lc_rc01/macro
Retrieve all lc rc01 macro settings.
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo200Headers
Content-Type: application/jsonBody
[
{
"index": 1,
"theme": 1,
"channel": [
{
"id": 1,
"enable": false,
"preset": "1"
}
]
}
]Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "array"
}404Headers
Content-Type: application/jsonBody
{
"code": 6,
"message": "The desired resource is not found."
}LC RC01 Macro Setting List ¶
Get LC RC01 Macro SettingGET/api/external_device/lc_rc01/macro/{index}
Retrieve current lc rc01 macro setting.
Example URI
- index
number(required)The macro’s index
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo200Headers
Content-Type: application/jsonBody
{
"index": 1,
"theme": 1,
"channel": [
{
"id": 1,
"enable": false,
"preset": "1"
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"index": {
"type": "number",
"description": "Index of macro"
},
"theme": {
"type": "number",
"description": "Theme id to be changed to"
},
"channel": {
"type": "array"
}
}
}404Headers
Content-Type: application/jsonBody
{
"code": 6,
"message": "The desired resource is not found."
}Update LC RC01 Macro SettingPUT/api/external_device/lc_rc01/macro/{index}
Update lc rc01 macro setting.
Example URI
- index
number(required)The macro’s index
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQoBody
{
"preset": 1,
"theme": 1,
"channel": [
{
"id": 1,
"enable": false,
"preset": "1"
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"preset": {
"type": "number",
"description": "Preset id"
},
"theme": {
"type": "number",
"description": "Theme id to be changed to"
},
"channel": {
"type": "array"
}
}
}200Headers
Content-Type: application/jsonBody
{
"index": 1,
"theme": 1,
"channel": [
{
"id": 1,
"enable": false,
"preset": "1"
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"index": {
"type": "number",
"description": "Index of macro"
},
"theme": {
"type": "number",
"description": "Theme id to be changed to"
},
"channel": {
"type": "array"
}
}
}400Headers
Content-Type: application/jsonBody
{
"code": 2,
"message": "Invalid request parameter."
}404Headers
Content-Type: application/jsonBody
{
"code": 6,
"message": "The desired resource is not found."
}500Headers
Content-Type: application/jsonBody
{
"code": 10,
"message": "Fail to update the resource."
}Gui ¶
Gui Usb Backup Status ¶
Get Usb Backup StatusGET/api/gui/usb_backup
Retrieve usb backup status.
response UsbBackup status:
-
1 copying
-
other code is not copy.
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo200Headers
Content-Type: application/jsonBody
{
"backup": 1
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"backup": {
"type": "number",
"description": "Usb Backup status"
}
}
}500Headers
Content-Type: application/jsonBody
{
"code": 1803,
"message": "Gui IPC error."
}Make Gui Do/Cancel Usb BackupPOST/api/gui/usb_backup
Make Gui Do/Cancel Usb Backup.
response UsbBackup status:
-
0 : no error
-
-99 : media status is not ready
-
-7 : break copying
-
-6 : FAT32 drive can’t copy over 4 GB file.
-
-5 : not enough storage
-
-4 : not find usb storage device
-
-3 : copy file size is zero
-
-1 : other error
Example URI
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQoBody
{
"backup": 1
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"backup": {
"type": "number",
"description": "Usb Backup status"
}
}
}200Headers
Content-Type: application/json500Headers
Content-Type: application/jsonBody
{
"code": 1803,
"message": "Gui IPC error."
}