Skip to main content
Replaces, per listed resource type, the instances the group gives its members access to. A group only adds access: mode all removes the type’s instances from the group and limits nobody. Project instances need their workspace_id. The response is the scope as Get Access Group Access Scope returns it, so view is required as well. The response carries an ETag header (the same value a GET of this resource returns). Send it back in If-Match to make the write conditional: when the resource has changed in the meantime the write is refused with 412 and nothing is changed. The check narrows, but does not fully close, the window for a concurrent overwrite — two writers that pass it at the same instant can both write.
Permission required: access_group:manage and access_group:view
  • Changes that give someone an admin role, or that reduce what an admin can reach, also require the team owner or an admin.

Path Parameters

string
required
Identifier

Headers

string
Optional. The ETag from a previous read of this resource. The write is refused with 412 when the resource has changed since; omit it to overwrite unconditionally.

Request Body

string
required
Why the change is made; recorded in the audit log
array
required
Each listed resource type’s instance list is replaced by the given one; mode all removes the type’s instances (a group never limits anyone). Types not listed keep their current list.

Response

object

Errors

Errors answer with success: false, a message and an error_code. See Error Codes for every code.