For the complete documentation index, see llms.txt. This page is also available as Markdown.

/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.

put
Authorizations
AuthorizationstringRequired

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.

Path parameters
IdstringRequired

An identifier of a specimen (face) in the database.

Example: 6782225b-1793-4b68-a9de-8fdb3628c7e5
Body

Body 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.

mediaIdstringOptional

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}).

Example: 9c79c818-b81a-4959-b65a-a2b0c8143528
collectionIdstring · min: 1Optional

An 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.

Example: bank01_collection01Pattern: ^[A-Za-z0-9_-]+$
descriptionstring · min: 1Optional

Description of the specimen (face) stored in the database.

Example: It's a description of the person
Responses
200

The updated data of the specimen stored in the database.

application/json

Data fields of the specimen in the database

createAtstringOptional

Date/time value (UTC, 1-second resolution) in "%Y-%m-%dT%H:%M:%SZ" format at which a specimen (face) was created.

Example: 2024-11-20T15:39:32Z
descriptionstring · min: 1Optional

Description of the specimen (face) stored in the database.

Example: It's a description of the person
facialTemplateRawstringOptional

An 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.

Example: QTevT1Lv5jr0rNyzS3u6SAscolMU+bHitq...
idstringOptional

An identifier of a specimen (face) in the database.

Example: 6782225b-1793-4b68-a9de-8fdb3628c7e5
mediaIdstringOptional

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}).

Example: 9c79c818-b81a-4959-b65a-a2b0c8143528
collectionIdstring · min: 1Optional

An 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.

Example: bank01_collection01Pattern: ^[A-Za-z0-9_-]+$
updateAtstringOptional

Date/time value (UTC, 1-second resolution) in "%Y-%m-%dT%H:%M:%SZ" format at which a specimen (face) was updated.

Example: 2025-03-18T12:54:02Z
put/faces/{Id}
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