Groups and Sections
Update Group and set businesses
Update a group. This endpoint allows you to modify the details of an existing group within the system. Only Group Managers and higher roles can use this endpoint. Business Managers are restricted from accessing it. For more information about the group system, see the Groups and Sections description. ⚠️ You must specify which businesses are part of the group using the business__in parameter.
- If you don't specify any businesses, the group will be updated to include all businesses. - To update a group to be empty, provide an empty array in the business__in parameter.
post/sections/{section_id}/groups/{group_id}
Path parameters
section_idinteger required
Section ID
group_idinteger required
Group ID
Request body
Example request
{
"name": "France",
"business__in": [
"5409c35a97bbc544d8e26737",
"595badaef348ab6b3530033f",
"59d53302b12ff6429f262639"
]
}Response
OK
Example response
{
"id": 1
}