---
title: "Disable SSO connection"
method: PATCH
path: "/api/v1/organizations/{organization_id}/connections/{id}:disable"
tags: ["Connections"]
---

# Disable SSO connection

`PATCH /api/v1/organizations/{organization_id}/connections/{id}:disable`

Deactivate an existing connection for the specified organization. When disabled, users cannot authenticate using this connection. This endpoint changes the connection state from enabled to disabled without modifying other configuration settings

## Path parameters

- `organization_id` string, required
- `id` string, required

## Response `200`

Connection disabled successfully

- ConnectionsToggleConnectionResponse
  - `enabled` boolean — Current state of the connection after the operation. True means the connection is now enabled and can be used for authentication.
  - `error_message` string — Error message if the operation fails

---

[API](https://skmtc.dev/scalekit/apis/scalekit-api-reference.md) · [All operations](https://skmtc.dev/scalekit/apis/scalekit-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/scalekit/scalekit-api-reference/revisions/a7181708713b/schema)
