Skip to main content

Update Group

Important Note

This feature is available in the Business plan. If you haven't upgraded yet, please upgrade before using this feature.

API Overview

  • Function: Update Group
  • Request Method: POST
  • Request URL: /api/contacts/teams/{team_id}/groups/{group_id}?appid={appid}&access_token={access_token}

Request Parameters

Parameter NameTypeRequiredLocationDescriptionExample
team_idintegerYesuriTeam ID30
group_idintegerYesuriGroup ID30
namestringYesbodyGroup NameTest Group
orderintegerNobodySort Order1
from_idintegerNobodyOriginal Parent Group ID1
to_idintegerNobodyNew Parent Group ID (used when moving group)1

Response Parameters

None

Response Examples

  • Successful Request
{
"code": "OK",
"error": {
"type": ""
},
"data": {},
"request_id": "e9ab73bf-6a50-406f-8b19-7af5eb9e916c"
}
  • Failed Request
{
"code": "NotFound",
"error": {
"type": "contacts_group_not_found"
},
"data": {},
"request_id": "e82ce6af-3256-4805-aca6-b86c19d6c334"
}

Error Codes

error.type CodeDescription
invalid_argumentParameter Validation Failed
claim_errorNo Permission
contacts_team_not_foundTeam Not Found
contacts_group_not_foundGroup Not Found
group_too_deepGroup Hierarchy Too Deep
parent_group_not_foundParent Group Not Found
default_group_be_modifiedDefault Group Cannot Be Modified
duplicated_remote_idDuplicate Remote ID