Skip to main content
Version: 2.0.0

Update Person

PATCH

  

https://api.apptenticate.com/api/v2/biometrics/recognizer/persons/<id>/


This operation allows updating the “citizen_id”, “name”, “image” or “is_blocked” fields of a Person within the project assigned for the Recognizer service. Since the method is PATCH, you can omit the fields that you do not want to modify.

Request data

FieldTypeDescription
idintegerUnique identifier within Recognizer, this is the one that allows you to obtain, update or delete the person. Do not confuse with citizen_id
citizen_idstringIdentity card or some unique identifier of the person
namestringPerson's name
imagefilePerson's selfie image. Any valid image format. Less than 2MB
is_blockedboolIndicates whether the person is blocked or not

Request example

Request
curl --location --request PATCH 'https://api.apptenticate.com/api/v2/biometrics/recognizer/persons/<id>/' \
--header 'Authorization: Bearer <jwt_token>' \
--form 'citizen_id="<cédula>"' \
--form 'name="<nombre>"' \
--form 'image=@"<ruta_archivo>"' \

Response data

If the person is created successfully, the service will return a JSON object with the following structure:

FieldTypeDescription
idfileUnique identifier within Recognizer, this is the one that allows you to update or delete the person
citizen_idstringIdentity card or some unique identifier of the person
namestringPerson's name
imagestringPerson's image URL
is_blockedboolIndicates whether the person is blocked or not
created_atstringPerson's creation date
agreed_termsboolIndicates if the person accepted the Recognizer service terms and conditions

Example of successful response

status_code: 201
{
"id": 47662684,
"citizen_id": "<identity card>",
"name": "<name>",
"image": "<image_url>",
"is_blocked": false,
"created_at": "2023-11-13T10:20:46.865685-05:00",
"agreed_terms": false
}

Example of response with rejection

status_code: 400
{
"error": "There is already a registered person with that ID",
"error_code": 903
}

Rejection codes

If the request is not successful, a rejection code will be sent in the response. Possible rejection codes are:

CódigoMensaje
901Image too large. Maximum size allowed: 2MB
902There is no person registered with that identification
903There is already a person registered with that ID
904No faces detected in the image
905More than one face detected, only images with one face are allowed