Rename Group

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

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.