Change Multi-Channel Name

Last Updated on : 2024-09-10 01:49:19

Change the name of a channel for a multichannel device.

API address

PUT: /v1.0/devices/{device_id}/multiple-name

Request parameter

Parameter nameTypeINRequiredDescription
device_idStringuritrueThe device ID.

Description of body

Parameter nameTypeINRequiredDescription
nameStringbodytrueDevice name or dp name.
identifierStringbodytrue
  • main:Example Modify the device name.
  • {functionCode}:Example Change the dp name.

Return parameter

Parameter nameTypeDescription
resultBooleanIndicates whether the operation is successful. Valid values:
  • true: The operation succeeded.
  • false: The operation failed.
successBooleanIndicates whether the API is called successfully. Valid values:
  • true: The API call succeeded.
  • false: The API call failed.
tLongThe timestamp.
tidStringThe link ID.

Request example

PUT: /v1.0/devices/68688sdfdsfds889/multiple-name
{
  "name": "test device",
  "identifier": "main"
}

Return example

{
    "tid": "f6444ebb7ddb11eea7ba0a96cea2****",
    "result": true,
    "t": 1699409417912,
    "success": true
}

Error code

For more information, see error code.