Modify Device or Channel Name - Imou Open Platform
modifyDeviceName: modify the device or channel name
Function details
Modify the name of the device/channel:
When the channel number is empty, set the device name. For a single-channel device, the channel name of the existing channel number under the device will be modified at the same time;
When the channel number is not empty, set the channel name.
Note: When modifying the authorized device shared by easy4ip, the channel number must be transmitted, and the device name of the single-channel IPC will be modified at the same time.
Request address
https://openapi-[DataCenter].easy4ip.com/openapi/modifyDeviceName
Minimum permissions required for sub-account token request
"Permission":"Config" "Resource":"cam:serial number:channel number"
Incoming parameter description
| Parameter name | Parameter type | Required or not | Default value | Legal value | Parameter description |
|---|---|---|---|---|---|
| token | String | Yes | Administrator or sub-account accessToken | ||
| deviceId | String | Yes | Device serial number | ||
| channelId | String | No | "" | Device channel number | |
| name | String | is | name |
Sample input
{
"system":{
"ver":"1.0",
"appId":"lcdxxxxxxxxx",
"sign":"5b057301e2d7e1a86f8821420578c022",
"time":1603373856,
"nonce":"3655bc93-44a6-47d4-bde7-49907eb835b6"
},
"id":"647807ed-620d-4473-bb1d-b86ca399fef1",
"params":{
"name":"test",
"deviceId":"TESTQWERXXXX",
"channelId":"0",
"token":"At_00000ad9e6e87f0142eb92e207aec46a"
}
}
Return data field description
No data returned
Sample output
{
"result":{
"msg":"The operation was successful.",
"code":"0"
},
"id":"647807ed-620d-4473-bb1d-b86ca399fef1"
}
