---
title: "Add an SSO required role to a workspace"
method: POST
path: "/workspaces/{workspace_id}/sso-required-roles"
tags: ["Workspace SSO"]
---

# Add an SSO required role to a workspace

`POST /workspaces/{workspace_id}/sso-required-roles`

## Request

- Base URL: `https://api.carbonvoice.app`
- URL: `https://api.carbonvoice.app/workspaces/{workspace_id}/sso-required-roles`
- Auth: one of:
  - API key in header `pxtoken`
  - OAuth 2 (implicit, authorization URL `https://api.carbonvoice.app/oauth/authorize`)

## Path parameters

- `workspace_id` string, required

## Request body

- AddSsoRequiredRole
  - `role` 'admin' | 'owner' | 'creator' | 'member' | 'guest', required

## Response `200`

- SsoRequiredRolesResponse
  - `results` Role[], required

## Other responses

- `400`
- `403`: Caller is not a Carbon super user (user role admin) or a workspace admin, or has no verified email address on the SSO email domain
- `404`

---

[API](https://skmtc.dev/carbonvoice/apis/carbon-voice-api.md) · [All operations](https://skmtc.dev/carbonvoice/apis/carbon-voice-api/llms.txt) · [OpenAPI document](https://skmtc.dev/carbonvoice/apis/carbon-voice-api/revisions/b91c5c845122?raw)
