Permissions

Set a team's custom role

Changed on

Gives a team one custom role (a team permission set), replacing its current one, or none with permissionSetId null. The same role can be given to any number of teams; a role left with no team is kept until it is deleted. You can only give a role whose permissions you all have yourself. Whether the team is an Admin team is changed separately (PATCH /v1/teams/:teamId). Requires permissions.manage (only the owner has it by default), a recent sign-in.

put/v1/teams/{teamId}/permission-set

Request

  • Base URL
    https://api.openworklabs.com
  • Auth
    • API key in header x-api-key
    • or HTTP bearer

Path parameters

teamId, string typeid required

Den TypeID with 'tem_' prefix and a 26-character base32 suffix.

Request body

TeamPermissionSetBody required
permissionSetId, string typeid nullable required

Den TypeID with 'pms_' prefix and a 26-character base32 suffix.

Response

The team's custom role was set; the role's current state is returned, or null when the team has none.

TeamPermissionSetResponse required
set, PermissionSetDetail nullable required

Changes

    • warning

      added the new billing_manager_default enum value to the set/anyOf[#/components/schemas/PermissionSetDetail]/kind response property for the response status

    • warning

      added the new own_role enum value to the anyOf[#/components/schemas/PermissionEditError]/error response property for the response status

    • warning

      added the new super_admin_role_requires_super_admin enum value to the anyOf[#/components/schemas/PermissionEditError]/error response property for the response status

    1 more change in this revision