/faces/{Id}
Updates the specimen (face) with the same Id in the database. All fields are optional. mediaId and collectionId must appear together in the same request or neither of them must appear - the collection of a specimen cannot be changed without also giving the mediaId (of the target collection) that will back it from then on. If mediaId is given, it must belong to the effective collectionId (the one given in the request, or the one already stored if it is not changed) and must not already be in use by another specimen.
JWT signed with HS256 (shared secret auth_jwt_secret) and with a non-expired exp claim; if it includes nbf, it must be currently valid. Only applied if auth_enabled is true and auth_accept_authorization_header is true. The Bearer scheme is case-insensitive.
An identifier of a specimen (face) in the database.
6782225b-1793-4b68-a9de-8fdb3628c7e5Body for the PUT face request. All fields are optional, but mediaId and collectionId must appear together in the same request or neither of them must appear - changing the collection without also specifying the target mediaId is not allowed.
An identifier of an image in the database. Each image is associated with a single specimen (face): the uploaded image becomes associated when the face is created with POST /faces and it is deleted together with it (DELETE /faces/{Id}) or together with its collection (DELETE /collections/{collectionId}).
9c79c818-b81a-4959-b65a-a2b0c8143528An identifier that allows grouping different images or biometric templates in a common space. It can only contain ASCII letters (A-Z, a-z), digits (0-9), underscore (_) and hyphen (-); it cannot be empty and it is case-sensitive. The following are not allowed: spaces, dots, +, :, @, quotes, %, ~, /, or non-ASCII characters (ñ, accents, emoji...): the identifier is used as a path parameter and any other character prevents its use. It must correspond to a collection previously created with POST /collections.
bank01_collection01Pattern: ^[A-Za-z0-9_-]+$Description of the specimen (face) stored in the database.
It's a description of the personThe updated data of the specimen stored in the database.
Data fields of the specimen in the database
Date/time value (UTC, 1-second resolution) in "%Y-%m-%dT%H:%M:%SZ" format at which a specimen (face) was created.
2024-11-20T15:39:32ZDescription of the specimen (face) stored in the database.
It's a description of the personAn extended token that contains biometric templates and metadata. Storing it in databases is recommended because it remains valid across engine versions (it can be updated automatically if the extraction technology changes; see updatedTemplateRaw). Like the rest of the tokens, its value changes on every extraction (it carries a timestamp): two extractions of the same image do not give the same text, but they identify the same person. It is encoded in RFC4648 base64.
QTevT1Lv5jr0rNyzS3u6SAscolMU+bHitq...An identifier of a specimen (face) in the database.
6782225b-1793-4b68-a9de-8fdb3628c7e5An identifier of an image in the database. Each image is associated with a single specimen (face): the uploaded image becomes associated when the face is created with POST /faces and it is deleted together with it (DELETE /faces/{Id}) or together with its collection (DELETE /collections/{collectionId}).
9c79c818-b81a-4959-b65a-a2b0c8143528An identifier that allows grouping different images or biometric templates in a common space. It can only contain ASCII letters (A-Z, a-z), digits (0-9), underscore (_) and hyphen (-); it cannot be empty and it is case-sensitive. The following are not allowed: spaces, dots, +, :, @, quotes, %, ~, /, or non-ASCII characters (ñ, accents, emoji...): the identifier is used as a path parameter and any other character prevents its use. It must correspond to a collection previously created with POST /collections.
bank01_collection01Pattern: ^[A-Za-z0-9_-]+$Date/time value (UTC, 1-second resolution) in "%Y-%m-%dT%H:%M:%SZ" format at which a specimen (face) was updated.
2025-03-18T12:54:02ZIncorrect parameters arrive in the request.
JWT authentication is enabled and the token is missing or invalid.
The request body exceeds client_max_body_size. It is returned with no body and the connection is closed.
An error occurred while calling the backend.
PUT /faces/{Id} HTTP/1.1
Host: 127.0.0.1:6982/
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 136
{
"mediaId": "9c79c818-b81a-4959-b65a-a2b0c8143528",
"collectionId": "bank01_collection01",
"description": "It's a description of the person"
}{
"createAt": "2024-11-20T15:39:32Z",
"description": "It's a description of the person",
"facialTemplateRaw": "QTevT1Lv5jr0rNyzS3u6SAscolMU+bHitq...",
"id": "6782225b-1793-4b68-a9de-8fdb3628c7e5",
"mediaId": "9c79c818-b81a-4959-b65a-a2b0c8143528",
"collectionId": "bank01_collection01",
"updateAt": "2025-03-18T12:54:02Z"
}Last updated