Skip to main content

Create a Source

This method creates a source. 

Authorizations: Sources - CREATE

Requests

POST /apis/sources
{ 
description: ""
host: "239.35.126.101"
multicast: true
name: "InfoDevSource"
port: 4902
type: "UDP"
}

Response

Success

{
"data": {
"name": "InfoDevSource",
"type": "UDP",
"host": "239.35.126.101",
"port": 4902,
"multicast": true,
"id": "6e6862e0-d65d-4de5-b690-62e680d4587b"
}
}

Error

Code

Payload

 Description

400
{"code":"010001", "name":"InputValidation",
"message":<Error message>, "httpStatusCode":400}

No sources available.

404
{"code":"040009", "name":"SourceNotFound", "message":"Source not found", "httpStatusCode":404}
Source with UUID sourceId not found.
500
{"code": "070014", "name":"FileWrite",
"message": "Error writing to file", "httpStatusCode": 500}

Unable to write new 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.