---
title: "Rotate SSO credentials"
method: PUT
path: "/api/organizations/{name}/settings/sso/credentials"
tags: ["orgs"]
---

# Rotate SSO credentials

`PUT /api/organizations/{name}/settings/sso/credentials`

Update SSO credentials of the organization's SSO configuration. SSO stays enabled and does not need to be re-tested, so rotation causes no downtime. Requires a paid plan.

## Path parameters

- `name` string, required

## Request body

- union
  - object — OIDC client secret
    - `clientSecret` string, required
  - object — SAML IdP x509 certificate
    - `x509Cert` string, required

## Response `200`

The SSO credentials were rotated

- unknown

---

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