---
title: "Enable/disable the Workspace SSO configuration"
method: PATCH
path: "/workspaces/{workspace_id}/sso"
tags: ["authentication"]
---

# Enable/disable the Workspace SSO configuration

`PATCH /workspaces/{workspace_id}/sso`

## Request

- Base URL: `https://localhost:8080/api/v9`
- URL: `https://localhost:8080/api/v9/workspaces/{workspace_id}/sso`
- Auth: none declared
- TypeScript: <https://skmtc.dev/toggl/apis/toggl-api/docs/workspaces/:workspace_id/sso/patch.ts> (a function with typed inputs; its response is checked against the schema)

Enable/Disable the SSO configuration for a workspace.

## Path parameters

- `workspace_id` integer, required

## Request body

- SsoState
  - `enabled` boolean

## Response `200`

Successful operation.

- SsoState
  - `enabled` boolean

## Other responses

- `403`: Possible message error: Could be one of these: Workspace not found/accessible, Need to be the owner of the organization, Only valid for premium workspace and "Single Sign On" must be enabled
- `500`: We're sorry, but something went terribly wrong. We have been notified about the error. Please try again later.

---

[API](https://skmtc.dev/toggl/apis/toggl-api.md) - [All operations](https://skmtc.dev/toggl/apis/toggl-api/llms.txt) - [OpenAPI document](https://skmtc.dev/toggl/apis/toggl-api/revisions/3085aee16990?raw)
