命名空间:microsoft.graph
更新 userFlowLanguagePage 对象中的值。 只能更新 overridesPage 中的值,用于自定义在用户流定义的用户旅程期间向用户显示的值。
Permissions
要调用此 API,需要以下权限之一。要了解详细信息,包括如何选择权限的信息,请参阅权限。
| 权限类型 | 权限(从最低特权到最高特权) |
|---|---|
| 委派(工作或学校帐户) | IdentityUserFlow.ReadWrite.All |
| 委派(个人 Microsoft 帐户) | 不支持。 |
| 应用程序 | IdentityUserFlow.ReadWrite.All |
工作或学校帐户需要属于以下角色之一:
- 全局管理员
- 外部标识用户Flow管理员
HTTP 请求
若要引用对象中的内容,必须使用 $value 。 这将返回 对象中的内容,并允许你直接引用它。
PUT /identity/b2xUserFlows/{id}/languages/{id}/overridesPages/{id}/$value
请求标头
| 名称 | 说明 |
|---|---|
| Authorization | Bearer {token}。必需。 |
| Content-Type | application/json. Required. |
请求正文
在请求正文中,提供 userFlowLanguagePage中包含的值的 JSON 表示形式。
响应
如果成功,此方法返回 204 No Content 响应代码。
示例
请求
下面展示了示例请求。
HTTP
PUT https://graph.microsoft.com/v1.0/identity/b2xUserFlows/B2X_1_Partner/languages/en/overridesPages/selfasserted1_1/$value
Content-Type: application/json
{
"LocalizedStrings": [
{
"ElementType": "UxElement",
"ElementId": null,
"StringId": "alert_message",
"Override": true,
"Value": "Are you sure that you want to cancel entering your information?"
}
]
}
JavaScript
const options = {
authProvider,
};
const client = Client.init(options);
const stream = {
LocalizedStrings: [
{
ElementType: 'UxElement',
ElementId: null,
StringId: 'alert_message',
Override: true,
Value: 'Are you sure that you want to cancel entering your information?'
}
]
};
await client.api('/identity/b2xUserFlows/B2X_1_Partner/languages/en/overridesPages/selfasserted1_1/$value')
.put(stream);
有关如何将 SDK 添加 到项目并 创建 authProvider 实例的 详细信息,请参阅 SDK 文档。
Go
//THE GO SDK IS IN PREVIEW. NON-PRODUCTION USE ONLY
graphClient := msgraphsdk.NewGraphServiceClient(requestAdapter)
requestBody := msgraphsdk.New()
requestBody.SetAdditionalData(map[string]interface{}{
"LocalizedStrings": []Object {
}
}
b2xIdentityUserFlowId := "b2xIdentityUserFlow-id"
userFlowLanguageConfigurationId := "userFlowLanguageConfiguration-id"
userFlowLanguagePageId := "userFlowLanguagePage-id"
graphClient.Identity().B2xUserFlowsById(&b2xIdentityUserFlowId).LanguagesById(&userFlowLanguageConfigurationId).OverridesPagesById(&userFlowLanguagePageId).$value().Put(requestBody)
有关如何将 SDK 添加 到项目并 创建 authProvider 实例的 详细信息,请参阅 SDK 文档。
响应
下面展示了示例响应。
注意: 为了提高可读性,可能缩短了此处显示的响应对象。
HTTP/1.1 204 No Content
历史资料。此文对应 2023-02-03 的中文文档快照,适用产品版本和命令行为以原文为准。
来源与署名:Microsoft 和文档贡献者(原始作者元数据 jkdouglas)。固定版本原文。文档采用 CC BY 4.0,示例代码采用 MIT 授权。本站将 Markdown 转为 HTML,规范化链接,移除外部媒体和导航标记。
