​

Update group

PATCH
https://example.kaiten.ru/api/latest/company/groups/{uid}

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.

Path parameters
NameTypeReference
uidrequiredstring (group-uid)Group UID, or 0 for the all-users group. The all-users group cannot be deactivated.
Headers
NameValue
Content-Typeapplication/json
Attributes
schema
NameTypeConstraintsDescription
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

Schema

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.

Responses

200
DescriptionResponse typeExample
SuccessObject
Open
Response Attributes
NameTypeDescription
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

Schema
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.
400
DescriptionResponse typeExample
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
Open
Response Attributes
NameTypeDescription
message

string

Error message
401
DescriptionResponse typeExample
Invalid tokenString
Open
402
DescriptionResponse typeExample
Feature is not supported by tariffObject
Open
Response Attributes
NameTypeDescription
message

string

Error message
403
DescriptionResponse typeExample
ForbiddenResponse body does not exist
404
DescriptionResponse typeExample
Not foundResponse body does not exist
Examples

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
  }
}
logo
Kaiten
If you have any questions or need help with integration feel free to write us at support@kaiten.ru

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!