/faceset/add_face

Description

Associate an existing faceset with a list of faces. Note that one face may only be assigned to one faceset.
One Faceset may contains at most 10000 Faces

Parameter

Name Description
Required api_key Your registered API Key
api_secret Your registered API Secret
faceset_name or faceset_id The name or id of the target faceset.
face_id A comma-separated list of face ids, specifying which faces to be associated with that faceset.

Return Values

Field Type Description
added int The number of added face
success bool Always be "true"

Parameter

https://apius.faceplusplus.com/v2/faceset/add_face?api_secret=YOUR_API_SECRET&face_id=1698e3320e1f75f63650e61d9e2ace53,13919c882327bdc55d7ba336e7cbf167&api_key=YOUR_API_KEY&faceset_name=NicolasCage

JSON Response

{
    "added": 2, 
    "success": true
}

Error Code List

Error Code HTTP Status Code Error Message
1001 500 INTERNAL_ERROR
1003 403 AUTHORIZATION_ERROR
1003 403 INSUFFICIENT_PRIVILEGE_OR_QUOTA_LIMIT_EXCEEDED
1004 400 MISSING_ARGUMENTS
1008 400 TOO_MANY_ITEMS_TO_ADD
1005 400 INVALID_ARGUMENTS
1006 403 ILLEGAL_USE_OF_DEMO_KEY
1202 502 SERVER_TOO_BUSY
Google+