Rename Group

Last Updated on : 2023-11-23 06:26:31download

Rename the specified group based on the group ID.

API address

PUT: /v2.0/cloud/thing/group/{group_id}/{name}

Request parameter

Parameter nameTypeINRequiredDescription
group_idLongpathtrueThe ID of the specified group.
nameStringpathtrueThe name of the specified group.

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: /v2.0/cloud/thing/group/123***2/gro*****ame

Return example

{
    "tid": "38cced10b32111edaa2fba12a1143bd9",
    "result": true,
    "t": 1677119078865,
    "success": true
}

Error code

For more information, see error code.

Limits on API Request Frequency

For more information, see Limits on API Request Frequency.