Liveness Session Operations - Patch Settings
更新活体设置对象。
PATCH {endpoint}/face/{apiVersion}/settings
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
api
|
path | True |
string |
API 版本 |
|
endpoint
|
path | True |
string (uri) |
支持的认知服务终结点(协议和主机名,例如:https://{resource-name}.cognitiveservices.azure.com)。 |
请求正文
| 名称 | 类型 | 说明 |
|---|---|---|
| livenessAbuseMonitoring |
活跃度滥用监控设置 |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| 200 OK |
请求成功。 |
|
| Other Status Codes |
意外错误响应。 标头 x-ms-error-code: string |
安全性
Ocp-Apim-Subscription-Key
Azure AI 人脸订阅的密钥。
类型:
apiKey
在:
header
AADToken
Azure Active Directory OAuth2 流
类型:
oauth2
流向:
accessCode
授权 URL:
https://api.example.com/oauth2/authorize
令牌 URL:
https://api.example.com/oauth2/token
作用域
| 名称 | 说明 |
|---|---|
| https://cognitiveservices.azure.com/.default |
示例
Patch LivenessSessionOperations Settings
示例请求
PATCH {endpoint}/face/v1.3-preview.1/settings
{
"livenessAbuseMonitoring": {
"enabled": true
}
}
示例响应
{
"livenessAbuseMonitoring": {
"enabled": true
}
}
定义
| 名称 | 说明 |
|---|---|
|
Face |
错误对象。 有关人脸服务返回的错误代码和消息的全面详细信息,请参阅以下链接: https://aka.ms/face-error-codes-and-messages。 |
|
Face |
包含错误详细信息的响应。 |
|
Liveness |
用于活跃度滥用监控的设置。 |
|
Liveness |
用于活跃度滥用监控的设置。 |
| Settings |
设置的响应模型。 |
|
Settings |
设置的响应模型。 |
FaceError
错误对象。 有关人脸服务返回的错误代码和消息的全面详细信息,请参阅以下链接: https://aka.ms/face-error-codes-and-messages。
| 名称 | 类型 | 说明 |
|---|---|---|
| code |
string |
服务器定义的一组错误代码之一。 |
| message |
string |
错误的人类可读表示。 |
FaceErrorResponse
包含错误详细信息的响应。
| 名称 | 类型 | 说明 |
|---|---|---|
| error |
错误对象。 |
LivenessAbuseMonitoringSetting
用于活跃度滥用监控的设置。
| 名称 | 类型 | 说明 |
|---|---|---|
| enabled |
object |
是否启用了活体滥用监控 |
LivenessAbuseMonitoringSettingUpdate
用于活跃度滥用监控的设置。
| 名称 | 类型 | 说明 |
|---|---|---|
| enabled |
object |
是否启用了活体滥用监控 |
Settings
设置的响应模型。
| 名称 | 类型 | 说明 |
|---|---|---|
| livenessAbuseMonitoring |
活跃度滥用监控设置 |
SettingsUpdate
设置的响应模型。
| 名称 | 类型 | 说明 |
|---|---|---|
| livenessAbuseMonitoring |
活跃度滥用监控设置 |