---
title: "Update an identity provider"
method: PATCH
path: "/api/v2/identity_providers/{idp_id}"
tags: ["Identity Providers"]
---

# Update an identity provider

`PATCH /api/v2/identity_providers/{idp_id}`

Enable or disable an identity provider for the current organization.

## Path parameters

- `idp_id` string, required

## Request body

- IdentityProviderUpdateRequest — Request body for updating an organization identity provider.
  - `data` IdentityProviderUpdateData, required — Data object for updating an organization identity provider.
    - `attributes` IdentityProviderUpdateAttributes, required — Attributes for updating an organization identity provider.
      - `enabled` boolean, required — Whether to enable or disable this identity provider for the organization.
    - `id` string, required — The unique identifier of the identity provider to update.
    - `type` 'identity_providers', required — The resource type for identity providers.

## Response `200`

OK

- IdentityProviderResponse — Response containing a single organization identity provider.
  - `data` IdentityProviderData, required — Data object representing an organization identity provider.
    - `attributes` IdentityProviderAttributes, required — Attributes of an organization identity provider.
      - `authentication_method` string, required — The authentication method used by this identity provider.
      - `enabled` boolean, required — Whether this identity provider is enabled for the organization.
    - `id` string, required — The unique identifier of the identity provider.
    - `type` 'identity_providers', required — The resource type for identity providers.

## Other responses

- `400` — Bad Request
- `403` — Authentication error
- `404` — Not found
- `429` — Too many requests

---

[API](https://skmtc.net/datadog/apis/api-v2.md) · [All operations](https://skmtc.net/datadog/apis/api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/datadog/api-v2/revisions/da68bf029e4c/schema)
