---
title: "Enable or disable an organization identity provider"
method: PATCH
path: "/organizations/{organization_id}/identity-providers/{provider_id}"
tags: ["Auth"]
---

# Enable or disable an organization identity provider

`PATCH /organizations/{organization_id}/identity-providers/{provider_id}`

## Request

- Base URL: `https://app.openpo.st/api/v1`
- URL: `https://app.openpo.st/api/v1/organizations/{organization_id}/identity-providers/{provider_id}`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `openpost_session`

## Path parameters

- `organization_id` string, required
- `provider_id` string, required

## Request body

- OIDCProviderActiveInputBody
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `active` boolean, required

## Response `200`

OK

- OIDCProviderActiveOutputBody
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `active` boolean, required
  - `revoked_sessions` integer, required

## Other responses

- `403`: Forbidden
- `404`: Not Found
- `422`: Unprocessable Entity
- `500`: Internal Server Error

---

[API](https://skmtc.dev/openpo/apis/openpost-api.md) · [All operations](https://skmtc.dev/openpo/apis/openpost-api/llms.txt) · [OpenAPI document](https://skmtc.dev/openpo/apis/openpost-api/revisions/67d3964458a7?raw)
