REST API: persons

Update a person record

Change a person record.

Purpose

Use this call to replace the strings stored with a person, to drop the stored image, or to move the record to another list with new_list_id.

Request

POST <API_BASE_URL>/person/update. All calls are POST under your API address. Replace <API_BASE_URL> with the API address provided with your access.

Send a permanent API token in the token field of the body, or a user token in the token header. See authentication.

Content type: application/json.

FieldTypeRequiredDescription
tokenstring (uuid)if no headerYour permanent API token. Required unless you send a user token in the token header.
person_idstringyesThe person to update.
list_idstringnoThe list the person is in now.
fieldsarray of stringnoThe strings to store with the person.
drop_imagebooleannoDrop the stored image.
new_list_idstringnoMove the person to this list.

Response

HTTP 200. The record was updated.

FieldTypeDescription
statusstringAlways ok on this body.
messagestringHuman-readable detail. Never branch on it.

Errors

  • 400: The body failed validation. The answer has status of error and a details list with one entry per offending field (path, expected, actual).
  • 401: The token is missing, expired or unknown.
  • 404: A referenced entity does not exist.

A refusal can also come before the operation runs: an address outside your IP allowlist, a token bound to another address, or a body that is not valid JSON. See response format and errors.

Example

Request:

curl -X POST "<API_BASE_URL>/person/update" \
  -H "Content-Type: application/json" \
  -d '{
    "token": "<your permanent API token>",
    "person_id": "<person id>",
    "list_id": "<person list id>",
    "fields": [
      "<your reference>"
    ]
  }'

Response:

{
  "status": "ok",
  "message": "<detail>"
}

Questions about the face API?

Write to us and we will help.

Talk to us