---
title: "PATCH /v1/scim-directories/{id}"
method: PATCH
path: "/v1/scim-directories/{id}"
tags: ["SSOReadyService"]
---

# PATCH /v1/scim-directories/{id}

`PATCH /v1/scim-directories/{id}`

Updates a SCIM directory.

## Path parameters

- `id` string, required

## Request body

- SCIMDirectory
  - `id` string — Unique identifier for this SCIM directory.
  - `organizationId` string — The organization this SCIM directory belongs to.
  - `primary` boolean — Whether this is the primary SCIM directory for the organization.
  - `scimBaseUrl` string — Base URL the Identity Provider uses to perform SCIM HTTP requests. SCIM base URLs are assigned by SSOReady, and need to be inputted into your customer's Identity Provider.
  - `hasClientBearerToken` boolean — Whether this SCIM directory has a bearer token assigned. SSOReady only stores a hash of the bearer token. To get a bearer token value, you must rotate this SCIM directory's bearer token.

## Response `200`

OK

- UpdateSCIMDirectoryResponse
  - `scimDirectory` SCIMDirectory
    - `id` string — Unique identifier for this SCIM directory.
    - `organizationId` string — The organization this SCIM directory belongs to.
    - `primary` boolean — Whether this is the primary SCIM directory for the organization.
    - `scimBaseUrl` string — Base URL the Identity Provider uses to perform SCIM HTTP requests. SCIM base URLs are assigned by SSOReady, and need to be inputted into your customer's Identity Provider.
    - `hasClientBearerToken` boolean — Whether this SCIM directory has a bearer token assigned. SSOReady only stores a hash of the bearer token. To get a bearer token value, you must rotate this SCIM directory's bearer token.

## Other responses

- `default` — Default error response

## Changes

- **2024-08-17** `9a895b843207` — 1 breaking, 7 warning, 1 info
  - the `scimDirectory` response's property type/format changed from `object`/`` to ``/`` for status `200`
  - removed the request property `clientBearerToken`
  - removed the optional property `scimDirectory/clientBearerToken` from the response with the `200` status
  - removed the optional property `scimDirectory/hasClientBearerToken` from the response with the `200` status
  - …5 more
- **2024-08-16** `132245ed6de0` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/ssoready/apis/ssoreadyservice-api/changes/v1/scim-directories/:id/patch.md)

---

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