Face List Operations - Update Face List
Update information of a Face List, including name and userData.
PATCH {endpoint}/face/{apiVersion}/facelists/{faceListId}
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
api
|
path | True |
string |
API Version |
endpoint
|
path | True |
string uri |
Supported Cognitive Services endpoints (protocol and hostname, for example: https://{resource-name}.cognitiveservices.azure.com). |
face
|
path | True |
string |
Valid character is letter in lower case or digit or '-' or '_', maximum length is 64. Regex pattern: |
Request Body
Name | Type | Description |
---|---|---|
name |
string |
User defined name, maximum length is 128. |
userData |
string |
Optional user defined data. Length should not exceed 16K. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
The request has succeeded. |
|
Other Status Codes |
An unexpected error response. Headers x-ms-error-code: string |
Security
Ocp-Apim-Subscription-Key
The secret key for your Azure AI Face subscription.
Type:
apiKey
In:
header
AADToken
The Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
accessCode
Authorization URL:
https://api.example.com/oauth2/authorize
Token URL:
https://api.example.com/oauth2/token
Scopes
Name | Description |
---|---|
https://cognitiveservices.azure.com/.default |
Examples
Update FaceList
Sample request
PATCH {endpoint}/face/v1.1-preview.1/facelists/your_face_list_id
{
"name": "your_face_list_name",
"userData": "your_user_data"
}
Sample response
Definitions
Name | Description |
---|---|
Face |
The error object. For comprehensive details on error codes and messages returned by the Face Service, please refer to the following link: https://aka.ms/face-error-codes-and-messages. |
Face |
A response containing error details. |
User |
User defined fields for object update. |
FaceError
The error object. For comprehensive details on error codes and messages returned by the Face Service, please refer to the following link: https://aka.ms/face-error-codes-and-messages.
Name | Type | Description |
---|---|---|
code |
string |
One of a server-defined set of error codes. |
message |
string |
A human-readable representation of the error. |
FaceErrorResponse
A response containing error details.
Name | Type | Description |
---|---|---|
error |
The error object. |
UserDefinedFieldsForUpdate
User defined fields for object update.
Name | Type | Description |
---|---|---|
name |
string |
User defined name, maximum length is 128. |
userData |
string |
Optional user defined data. Length should not exceed 16K. |