Create or update language
Namespace: microsoft.graph
This method is used to create or update a custom language in an Azure AD B2C user flow.
Note: You must enable language customization in the Azure AD B2C user flow before you can create a custom language. For more information, see Update b2cIdentityUserFlow.
Permissions
Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.
Permission type | Least privileged permissions | Higher privileged permissions |
---|---|---|
Delegated (work or school account) | IdentityUserFlow.ReadWrite.All | Not available. |
Delegated (personal Microsoft account) | Not supported. | Not supported. |
Application | IdentityUserFlow.ReadWrite.All | Not available. |
The work or school account needs to belong to at least the External ID User Flow Administrator Microsoft Entra role.
HTTP request
PUT /identity/b2cUserFlows/{id}/languages/{id}
Request headers
Name | Description |
---|---|
Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
Content-Type | application/json. Required. |
Request body
In the request body, supply a JSON representation of the userFlowLanguageConfiguration object.
The following table shows the properties that can be optionally provided when you create the userFlowLanguageConfiguration.
Property | Type | Description |
---|---|---|
id | String | The identifier of the language. This field is Language ID tag RFC 5646 compliant and must be a documented Language ID. If provided in the request body, it must match the identifer provided in the request URL. |
isEnabled | Boolean | Indicates whether the language is enabled within the user flow. If you don't specify a value for this property in the request, isEnabled will be set to 'true'. |
Response
If successful, this method returns a 201 Created
response code and a userFlowLanguageConfiguration object in the response body.
Examples
Example 1: Create a custom language in an Azure AD B2C user flow
Request
The following example shows a request.
PUT https://graph.microsoft.com/beta/identity/b2cUserFlows/B2C_1_CustomerSignUp/languages/es-ES
Content-Type: application/json
{
"id": "es-ES",
"isEnabled": true
}
Response
The following example shows the response.
Note: The response object shown here might be shortened for readability.
HTTP/1.1 201 Created
Content-Type: application/json
{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#identity/b2cUserFlows('B2C_1_CustomerSignUp')/languages/$entity",
"id": "es-ES",
"isEnabled": true,
"displayName": "Spanish (Spain)"
}
Example 2: Update a custom language in an Azure AD B2C user flow
Request
The following example shows a request.
PUT https://graph.microsoft.com/beta/identity/b2cUserFlows/B2C_1_CustomerSignUp/languages/es-ES
Content-Type: application/json
{
"isEnabled": false
}
Response
The following example shows the response.
HTTP/1.1 204 No Content
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기