Skip to main content

Update a Person

Endpoint

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

Updates an existing person. Send only the fields you want to change (name, images, gender, date_of_birth, nationality, collections, notes). Omit fields to leave them unchanged.

Headers

NameValue
Content-Typeapplication/json
AuthorizationBearer <token>

Params

NameTypeRequiredDescription
idstringYesPerson ID in the URL path (/persons/{id}).
namestringNoFull name (digits may be stripped server-side).
imagesstring[]NoBase64-encoded face images (raw base64, not data: URLs).
genderstringNoM or F.
date_of_birthstringNoISO 8601 date (e.g. 1990-01-15).
nationalitystringNoNationality or country code.
collectionsstring[]NoCollection IDs to associate with the person.
notesstringNoFree-form notes.

Request

const fetch = require("node-fetch");

async function run() {
const id = "person_123456789";
const res = await fetch(`https://api.verifik.co/v2/face-recognition/persons/${id}`, {
method: "PUT",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${process.env.VERIFIK_TOKEN}`,
},
body: JSON.stringify({
name: "John Doe Updated",
gender: "M",
notes: "Updated VIP customer",
}),
});
console.log(await res.json());
}

run();

Response

{
"id": "…",
"data": {
"_id": "person_123456789",
"name": "John Doe Updated",
"gender": "M",
"date_of_birth": { "year": 1990, "month": 1, "day": 15 },
"nationality": "US",
"images": ["<base64>", "<base64>"],
"collections": ["collection_123456789"],
"notes": "Updated VIP customer",
"client": "client_123456789",
"status": "active",
"faceEncodings": ["…", "…"],
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-16T14:20:00.000Z"
},
"signature": {
"message": "Certified by Verifik.co",
"dateTime": "…"
}
}

Notes

  • Partial updates are supported: include only body fields you want to change.
  • If you send images, use raw base64 strings; invalid or tiny payloads may return 412 only_images_in_base64.
  • 404 means the {id} does not exist or is not visible for your client.
  • Updated records follow The Person Object; field shapes may vary with API version.