你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Face List Operations - Delete Face List Face

通过指定的 faceListId 和 persistedFaceId 从人脸列表中删除人脸。
向同一人脸列表添加/删除人脸是按顺序处理的,并且从不同的人脸Lists是并行处理的。

DELETE {endpoint}/face/{apiVersion}/facelists/{faceListId}/persistedfaces/{persistedFaceId}

URI 参数

名称 必需 类型 说明
apiVersion
path True

string

API 版本

endpoint
path True

string

uri

支持的认知服务终结点 (协议和主机名,例如:https://{resource-name}.cognitiveservices.azure.com) 。

faceListId
path True

string

有效字符为字母(小写或数字)或“-”或“_”,最大长度为 64。

Regex pattern: ^[a-z0-9-_]+$

persistedFaceId
path True

string

uuid

人脸的人脸 ID。

响应

名称 类型 说明
200 OK

请求已成功。

Other Status Codes

FaceErrorResponse

意外的错误响应。

Headers

x-ms-error-code: string

安全性

Ocp-Apim-Subscription-Key

Azure AI 人脸订阅的密钥。

Type: apiKey
In: header

AADToken

Azure Active Directory OAuth2 流

Type: oauth2
Flow: accessCode
Authorization URL: https://api.example.com/oauth2/authorize
Token URL: https://api.example.com/oauth2/token

Scopes

名称 说明
https://cognitiveservices.azure.com/.default

示例

Delete Face from FaceList

Sample Request

DELETE {endpoint}/face/v1.1-preview.1/facelists/your_face_list_id/persistedfaces/43897a75-8d6f-42cf-885e-74832febb055

Sample Response

定义

名称 说明
FaceError

错误对象。 有关人脸服务返回的错误代码和消息的完整详细信息,请参阅以下链接: https://aka.ms/face-error-codes-and-messages

FaceErrorResponse

包含错误详细信息的响应。

FaceError

错误对象。 有关人脸服务返回的错误代码和消息的完整详细信息,请参阅以下链接: https://aka.ms/face-error-codes-and-messages

名称 类型 说明
code

string

服务器定义的一组错误代码中的一个。

message

string

错误的用户可读表示形式。

FaceErrorResponse

包含错误详细信息的响应。

名称 类型 说明
error

FaceError

错误对象。