Create Custom Role
Create a custom role on a team. A custom role extends a built-in base role with additional grantable actions. Assign it to a group with the Team Group API’s custom_role_id. Requires custom roles to be enabled for the organization.
Authentication and permissions
Token requirements: User-based token (OAuth) or Organization-scoped API key. Send a bearer access token for one of these identities. The permissions and resource restrictions below also apply.
- Default request: With a user OAuth token, you also need Edit Team Settings on the role’s team, and you can grant only actions you already hold there.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The team that owns the role. A custom role can only be assigned on its own team.
Body
Unique among the team's custom roles.
The built-in role the custom role extends. A member holding the custom role has everything the base role grants plus granted_actions.
TEAM_USER_ROLE_UNSPECIFIED, TEAM_USER_ROLE_AGENT, TEAM_USER_ROLE_MANAGER, TEAM_USER_ROLE_BUILDER, TEAM_USER_ROLE_VIEWER, TEAM_USER_ROLE_CONTRIBUTOR, TEAM_USER_ROLE_DRAFTER, TEAM_USER_ROLE_READONLY_AGENT, TEAM_USER_ROLE_APP_BUILDER, TEAM_USER_ROLE_APP_VIEWER, TEAM_USER_ROLE_PERSONAL_TEAM_OWNER Action slugs the role grants on top of its base role. Only grantable actions are accepted; an unknown or non-grantable slug rejects the request.
Response
Success

