Modify sources
1. API Description
This API is used to modify sources. Only the parameters that need to be modified are required to be transmitted; unchanged parameters can be omitted.
Request mode: POST [ip]/api/source/update
Administrator Rights | Logged-in |
---|---|
No | Yes |
2. Input Parameters
Name | Required | Type | Description |
---|---|---|---|
id | Yes | Integer | The unique node ID. |
config | Yes | struct | Refer to the Add sources. |
3. Output Parameters
Name | Type | Description |
---|---|---|
status | Int | Status code |
code | String | Status description. |
4. Example
Modifying the NDI source ID=1.
Input Example
{
"id": 1,
"config": {
"name": "name1",
"protocol": "ndi",
"type": "ndi",
"data": {
"name": "ULTRA ENCODE (C315230423002-2)",
"url": "100.100.33.21:5000",
"low_bw": false,
"transport": "tcp",
"pts_mode": "auto",
"buffer_ms": 60
}
}
}
Output Example
{
"status": 0,
"code" : "Success"
}
5. Error Code
No error code related to the API business logic. For other error codes, see Common Error Codes.