Skip to main content

Edit a Source

Edits the specified source.

Authorizations: Sources - EDIT

Requests

PUT /apis/sources/:sourceId
{
"name": "InfoDevSource2",
"type": "UDP",
"host": "239.35.126.101",
"port": 4902,
"multicast": true
"continuous": false,
"description": "New description"
}

Response

Success

{
"data": {
"name": "InfoDevSource2",
"type": "UDP",
"host": "239.35.126.101",
"port": 4902,
"multicast": true,
"id": "6e6862e0-d65d-4de5-b690-62e680d4587b"
"active": true,
"bitrate": 7548979,
"ctime":1400879398,
"mtime":1402598729,
"description":"New description"
}
}

Error

Code

Payload

Description

400
{"code":"010001", "name":"InputValidation",
"message":<Error message>,
"httpStatusCode":400}
Supplied data was insufficient or incorrect
404
{"code":"040000", "name":"NotFound",
"message":"Not Found Error",
 "httpStatusCode":404}

Unable to locate source.

500
{"code": "070014", "name":"FileWrite",
"message": "Error writing to file",
"httpStatusCode": 500}

Unable to write updated data to a file.

 

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.