---
title: "Update SSO exemption"
method: PUT
path: "/v2/authn/sso-config/accounts/{accountId}/exemptions/{exemptionId}"
tags: ["SSO Exemptions"]
---

# Update SSO exemption

`PUT /v2/authn/sso-config/accounts/{accountId}/exemptions/{exemptionId}`

## Request

- Base URL: `https://api.alianza.com`
- URL: `https://api.alianza.com/v2/authn/sso-config/accounts/{accountId}/exemptions/{exemptionId}`
- Auth: API key in header `X-AUTH-TOKEN`

Updates an existing SSO exemption.

## Path parameters

- `accountId` string, required
- `exemptionId` string, required

## Request body

- SSOExemptionRequest
  - `partitionId` string: ID of partition, refers to <a href="#/~schema/PartitionX">partition.id</a> Required for PSSO/PESSO flows; not required for ACCSSO.
  - `accountId` string: ID of account, refers to <a href="#/~schema/Account">account.id</a> Required for ACCSSO flows.
  - `exemptionName` string: Exemption name
  - `exemptionType` 'USER' | 'GROUP' | 'ACCOUNT', required: Type of exemption target
  - `exemptions` string[], required: List of IDs to exempt (USER/GROUP/ACCOUNT depending on exemptionType).
  - `scope` 'ACCOUNT_LEVEL_SSO' | 'PARTITION_ENFORCED_SSO' | 'PARTITION_SSO'

## Response `200`

Exemption updated successfully

- SSOExemptionResponse
  - `exemptionId` string: Unique identifier for the exemption
  - `partitionId` string: ID of partition, refers to <a href="#/~schema/PartitionX">partition.id</a>
  - `accountId` string: ID of account, refers to <a href="#/~schema/Account">account.id</a>
  - `accountName` string: Name of the account
  - `exemptionName` string: Name of the exemption configuration
  - `exemptionType` 'USER' | 'GROUP' | 'ACCOUNT': Type of exemption target
  - `exemptions` string[]: List of exempted identifiers

## Other responses

- `400`: Bad Request - Invalid exemption data or validation failed
- `401`: Unauthorized - Invalid or missing X-Auth-Token
- `404`: Not Found - Exemption not found
- `500`: Internal Server Error - Failed to update exemption

---

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