---
title: "Update organization SAML preferences"
method: PATCH
path: "/api/v2/org/saml_configurations"
tags: ["Organizations"]
---

# Update organization SAML preferences

`PATCH /api/v2/org/saml_configurations`

Update the SAML preferences for the current organization.

Use this endpoint to set the just-in-time (JIT) provisioning domains and the default role
assigned to just-in-time provisioned users.

## Request body

- OrgSAMLPreferencesUpdateRequest — Request to update an organization's SAML preferences.
  - `data` OrgSAMLPreferencesData, required — Data for updating an organization's SAML preferences.
    - `attributes` OrgSAMLPreferencesAttributes, required — Attributes for updating an organization's SAML preferences.
      - `default_role_uuids` string[], required — The UUID of the default role assigned to just-in-time provisioned users. Exactly one role UUID must be provided.
      - `jit_domains` string[], required — Email domains for which users are automatically provisioned on first SAML login (just-in-time provisioning).
    - `id` string — The identifier of the SAML preferences resource.
    - `type` 'saml_preferences', required — SAML preferences resource type.

## Response `204`

No Content

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `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)
