To use this route you need access to the Administrative section "Members" (members permission) in the current company. The group must belong to this company and be active or inactive. The tariff must include groups.
| Name | Type | Reference |
|---|---|---|
| uidrequired | string (group-uid) | Group UID, or 0 for the all-users group. The all-users group cannot be deactivated. |
| Name | Value |
|---|---|
| Content-Type | application/json |
| Name | Type | Constraints | Description |
|---|---|---|---|
name | string | minLength: 1 maxLength: 512 | Group name |
permissions | integer | Group permissions (bit mask). A request containing only this field preserves existing named-only grants such as mcpConnections. Ignored when named_permissions is also supplied. Send only one permission format per PATCH request. | |
add_to_cards_and_spaces_enabled | boolean | Ability to add all users of the group to cards, placed in group spaces. Ability to filter logs by group in «Timesheets» | |
named_permissions | object | Partial update of the group's currently stored company permissions. Supplied names replace their current values; omitted names are preserved. If permissions is also supplied, its numeric mask is ignored, even when it is 0. For example, adding mcpConnections this way preserves an existing members grant. Unlike group creation, PATCH does not use the supplied numeric mask as a base. Send only one permission format per PATCH request. Boolean values only. False removes the grant from this group. See the company permissions reference. |
| Description | Response type | Example |
|---|---|---|
| Success | Object |
| Name | Type | Description |
|---|---|---|
| name | string | Group name |
| permissions | integer | Group permissions |
| updated | string | Last update timestamp |
| created | string | Create date |
| id | integer | Group id |
| uid | string | Group uid |
| add_to_cards_and_spaces_enabled | boolean | Ability to add all users of the group to cards, placed in group spaces. Ability to filter logs by group in «Timesheets» |
| named_permissions | object | Company permission grants for this group. The map contains every permission name supported by the server; ungranted permissions are false. Includes named-only permissions that have no bit in the numeric permissions mask. See the company permissions reference linked above. |
| Description | Response type | Example |
|---|---|---|
| Validation error. For named_permissions, message "Unknown or invalid named permission" means that the value is not an object of booleans; older server versions may also reject unknown names. | Object |
| Name | Type | Description |
|---|---|---|
| message | string | Error message |
| Description | Response type | Example |
|---|---|---|
| Invalid token | String |
| Description | Response type | Example |
|---|---|---|
| Feature is not supported by tariff | Object |
| Name | Type | Description |
|---|---|---|
| message | string | Error message |
| Description | Response type | Example |
|---|---|---|
| Forbidden | Response body does not exist |
| Description | Response type | Example |
|---|---|---|
| Not found | Response body does not exist |
How to set group permissions. To set permissions you need to sum their values, in the example below permissions are set for the administrative section "Members" and "Billing"
{
"permissions": 3
}Grant MCP administration to the group without changing other named permissions. Set mcpConnections to false to remove this grant.
{
"named_permissions": {
"mcpConnections": true
}
}Path Parameters
1 curl --request PATCH \
2 --url 'https://example.kaiten.ru/api/latest/company/groups/{uid}' \
3 --header 'Accept: application/json' \
4 --header 'Content-Type: application/json'
5 Response
ClickTry It!to start a request and see the response here!