Call this API to create a faceSet.
Request Example:
curl -X POST \
https://sg-api.advance.ai/intl/openapi/face-search/facesets \
-H 'Content-Type: application/json' \
-H 'X-ACCESS-TOKEN:{Your Access Token}' \
-d '{
"name": "Faces Collection-q",
"country": "SG",
}'
https://sg-api.advance.ai/intl/openapi/face-search/facesets
POST (application/json)
| Parameter | Description |
|---|
| name | string Supports letters, numbers, underscores, and hyphens, with a length of no more than 32 characters. |
| country | string The alpha-2 country code. Refer to ISO ALPHA-2 Country Code |
| Parameter | Description |
|---|
| code | enum Status Code. |
| transactionId | string The request id, the max length is 64. |
| pricingStrategy | enum Whether the request will be charged, enum type: FREE, PAY. |
| message | string The error message used to debug. |
| data | string The faceSet id created. |
| extra | object Extra response info (Exception Message). |
| Status Code | Message |
|---|
| SUCCESS | free OK. |
| PARAMETER_ERROR | free Parameter error, please check your request whether has illegal parameters. |
| ERROR | free Server error. |
{
"code": "SUCCESS",
"message": "OK",
"data": "1",
"extra": null
}
{
"code": "PARAMETER_ERROR",
"message": "FaceSet with same name already exists, name: Faces",
"data": null,
"extra": null,
"pricingStrategy": "FREE"
}