/person/add_face

Description

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

Parameter

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

Return Values

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

Parameter

https://apius.faceplusplus.com/v2/person/add_face?api_secret=YOUR_API_SECRET&face_id=1698e3320e1f75f63650e61d9e2ace53,13919c882327bdc55d7ba336e7cbf167&api_key=YOUR_API_KEY&person_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+