Update a Person

PUT - https://api.verifik.co/v2/face-recognition/persons/{id}

Method for updating an existing persons. To make the service work, the _id parameter is required, which is generated when a person is created correctly.

Headers

NameValue

Content-Type

application/json

Authorization

Bearer <token>

Body

Body

In the body of this service, you can send all the fields generated when creating a person. The only thing to consider is that the fields we want to modify are the ones that must be included in the body.

{
    "data": {
        "thumbnails": [
            {
                "id": "cfe0e19a-cb26-4e55-aa28-44761324f66b",
                "thumbnail": "Base 64 Image"
            }
        ],
        "gender": "M",
        "date_of_birth": "1995-05-07",
        "nationality": "Colombian",
        "collections": [
            "0dc5245b-cee53-4dce-aba8-9174c12fdfb2"
        ],
        "notes": "Verifik employee",
        "documentValidations": [],
        "_id": "65807837049c624ea360c092",
        "deleted": false,
        "name": "Mateo Verifik",
        "client": "64404b1f9856cc8cebd762e7",
        "updatedAt": "2024-01-10T21:55:03.645Z",
        "createdAt": "2024-01-10T21:55:03.645Z",
        "__v": 0
    }
}

Response

{
    "data": {
        "thumbnails": [
            {
                "id": "cfe0e19a-cb26-4e55-aa28-44761324f66b",
                "thumbnail": "Base 64 Image"
            }
        ],
        "gender": "M",
        "date_of_birth": "1995-05-07",
        "nationality": "Colombian",
        "collections": [
            "0dc5245b-cee53-4dce-aba8-9174c12fdfb2"
        ],
        "notes": "Verifik employee",
        "documentValidations": [],
        "_id": "65807837049c624ea360c092",
        "deleted": false,
        "name": "Mateo Verifik",
        "client": "64404b1f9856cc8cebd762e7",
        "updatedAt": "2024-01-10T21:55:03.645Z",
        "createdAt": "2024-01-10T21:55:03.645Z",
        "__v": 0
    }
}

Last updated