---
title: "Configure Azure AD settings"
method: PUT
path: "/azuread"
tags: ["AzureAD"]
---

# Configure Azure AD settings

`PUT /azuread`

## Request

- Base URL: `https://localhost:8446/api/v2`
- URL: `https://localhost:8446/api/v2/azuread`
- Auth: API key in header `Authorization`

Configure Azure AD settings. Returns Azure AD settings. See get Azure AD settings for the response details.

## Request body

- object
  - `authorization_code_flow_enabled` boolean, required: Determines whether Azure AD Authorization code flow is enabled or not
  - `client_credentials_flow_enabled` boolean, required: Determines whether Azure AD Client credentials flow is enabled or not
  - `client_id` string, required: Client ID.
  - `client_secret` string, required: Client secret. Required if Azure AD Authorization code flow is enabled
  - `authority` string, required: Authority. Required if Azure AD Authorization code flow is enabled
  - `openid_configuration_url` string, required: Azure OpenID Connect discovery document. Default value is https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration. Starting from version 4.2.1, it is strongly recommended to specify it always explicitly during the configuration.
  - `tenant_id` string, required: Tenant ID. Starting from version 4.2.1, it is strongly recommended to specify it always explicitly during the configuration. If not specified, the default value is extracted from the authority URL if authorization code flow is enabled

## Response `200`

Successful response

- object

## Other responses

- `default`: Error response. Depending on the error, either a 4xx or 5xx response status is returned.

---

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