Set a team's custom role
Changed onGives 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.
Request
- Base URLhttps://api.openworklabs.com
- Auth
- API key in header x-api-key
- or HTTP bearer
Path parameters
Den TypeID with 'tem_' prefix and a 26-character base32 suffix.
Request body
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.
Changes
- warning
added the new
billing_manager_defaultenum value to theset/anyOf[#/components/schemas/PermissionSetDetail]/kindresponse property for the response status - warning
added the new
own_roleenum value to theanyOf[#/components/schemas/PermissionEditError]/errorresponse property for the response status - warning
added the new
super_admin_role_requires_super_adminenum value to theanyOf[#/components/schemas/PermissionEditError]/errorresponse property for the response status
1 more change in this revision
- warning