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

Update User Template

This service updates the Biometric Template associated with a specific user. Its main purpose is to synchronize the user's latest facial template stored in the client's data repository with a newly registered template for that user.

Functionality

  • userId: Unique identifier of the user, persisted and associated with the corresponding Biometric Template (oldRegisteredTemplateRaw). Must contain at least two digits.

  • image (Optional): Base64-encoded image obtained from the civil registry for authentication. Required if the registered Biometric Template (registeredTemplateRaw) is not provided.

  • oldRegisteredTemplateRaw: Currently registered template associated with the userId.

  • newRegisteredTemplateRaw: New template to associate with the userId. It must be persisted for future authentication.

Endpoint

POST /services/updateUserTemplate

Headers

Name
Type
Required
Description

x-api-key

string

Yes

API Key for access authorization.

family

string

No

Value: Authentication. Required for the tracking service.

All calls to the tracking endpoints for Identity Platform must include the header family.

Request body

Content-Type: application/json

Parameters

Parameter
Type
Required
Description

userId

string

Yes

Unique identifier of the user. It must be persisted and associated with the corresponding Biometric Template. Must contain at least two digits.

oldRegisteredTemplateRaw

string

Yes

Currently registered template associated with the userId.

newRegisteredTemplateRaw

string

Yes

New template to associate with the userId. It must be persisted for future authentication.

image

string

No

Base64-encoded image obtained from the civil registry for authentication. Required if the registered Biometric Template is not provided.

tracking

object

No

Object representing the required tracking information.

tracking.extraData

string

No

Token generated by the SDK Mobile/Web. Contains tracking information tokenized with the Platform.

tracking.operationId

string

No

Operation identifier generated by the SDK Mobile/Web.

Request example

Responses

200 Success

Response parameters

Parameter
Type
Description

serviceResultCode

integer

Code indicating the overall result of the service execution. See Service Result Code

serviceResultLog

string

Descriptive field for the execution result. If successful, it indicates the description of the result code.

timestamp

string

Response timestamp (UTC) in YYYY-MM-DDThh🇲🇲ss.SSSZ format

transactionId

string

Transaction identifier associated with the request processed by the API.

Service Result Code

The serviceResultCode indicates the overall result of the service execution:

serviceResultCode
Description
HTTP code

0

The service executed successfully; the module processed the request correctly.

200

Service Result Code: Update User Template

Endpoint-specific result codes updateUserTemplate:

serviceResultCode
Description
HTTP code

0

The user's template (templateRaw) was successfully updated.

200

-100

The parameter registeredTemplateRaw does not match the ID: [XXX]

401

-102

The parameter registeredTemplateRaw sent does not match the user's registered templateRaw for ID: [XXX]. InvalidRegisteredTemplateRaw.

401

-103

User not found.

400

Example response

400 Bad Request

401 Unauthorized

403 Forbidden

413 Payload Too Large

The request exceeds the maximum permitted size. The gateway rejects it without processing it: the response does not include serviceResultCode or serviceTransactionId. See Request size limit.

Request larger than 6 MB and up to 10 MB (Content-Type: application/json):

Request larger than 10 MB (10,485,760 bytes) (Content-Type: text; charset=utf-8, plain text, not JSON):

502 Bad Gateway

504 Gateway Timeout

Last updated