People
Update a person
PATCH
/registries/{registryId}/profiles/{profileId}Update fields or contact details. Validated against the schema; unknown keys are rejected.
curl -X PATCH "https://api.facetrustai.com/v1/registries/3f9a1c2e-7b4d-4e6a-9c8b-2d1e0f5a6b7c/profiles/7c1e2a4b-5d3f-4e8a-9b21-0f6d8c3e1a57" \ -H "Authorization: Bearer $FACETRUST_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "fields": { "level": "400" } }'
// Node.js 18+, ES module (built-in fetch and FormData) const res = await fetch('https://api.facetrustai.com/v1/registries/3f9a1c2e-7b4d-4e6a-9c8b-2d1e0f5a6b7c/profiles/7c1e2a4b-5d3f-4e8a-9b21-0f6d8c3e1a57', { method: 'PATCH', headers: { Authorization: `Bearer ${process.env.FACETRUST_API_KEY}`, 'Content-Type': 'application/json', }, body: JSON.stringify({ "fields": { "level": "400" } }), }); const data = await res.json();
import os, uuid, requests res = requests.patch( "https://api.facetrustai.com/v1/registries/3f9a1c2e-7b4d-4e6a-9c8b-2d1e0f5a6b7c/profiles/7c1e2a4b-5d3f-4e8a-9b21-0f6d8c3e1a57", headers={"Authorization": f"Bearer {os.environ['FACETRUST_API_KEY']}"}, json={ "fields": { "level": "400" } }, timeout=15, ) res.raise_for_status() data = res.json()
curl -X PATCH "https://api.facetrustai.com/v1/registries/3f9a1c2e-7b4d-4e6a-9c8b-2d1e0f5a6b7c/profiles/7c1e2a4b-5d3f-4e8a-9b21-0f6d8c3e1a57" \ -H "Authorization: Bearer $FACETRUST_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "fields": { "department": "Finance" } }'
// Node.js 18+, ES module (built-in fetch and FormData) const res = await fetch('https://api.facetrustai.com/v1/registries/3f9a1c2e-7b4d-4e6a-9c8b-2d1e0f5a6b7c/profiles/7c1e2a4b-5d3f-4e8a-9b21-0f6d8c3e1a57', { method: 'PATCH', headers: { Authorization: `Bearer ${process.env.FACETRUST_API_KEY}`, 'Content-Type': 'application/json', }, body: JSON.stringify({ "fields": { "department": "Finance" } }), }); const data = await res.json();
import os, uuid, requests res = requests.patch( "https://api.facetrustai.com/v1/registries/3f9a1c2e-7b4d-4e6a-9c8b-2d1e0f5a6b7c/profiles/7c1e2a4b-5d3f-4e8a-9b21-0f6d8c3e1a57", headers={"Authorization": f"Bearer {os.environ['FACETRUST_API_KEY']}"}, json={ "fields": { "department": "Finance" } }, timeout=15, ) res.raise_for_status() data = res.json()
curl -X PATCH "https://api.facetrustai.com/v1/registries/3f9a1c2e-7b4d-4e6a-9c8b-2d1e0f5a6b7c/profiles/7c1e2a4b-5d3f-4e8a-9b21-0f6d8c3e1a57" \ -H "Authorization: Bearer $FACETRUST_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "fields": { "seat_number": "B04" } }'
// Node.js 18+, ES module (built-in fetch and FormData) const res = await fetch('https://api.facetrustai.com/v1/registries/3f9a1c2e-7b4d-4e6a-9c8b-2d1e0f5a6b7c/profiles/7c1e2a4b-5d3f-4e8a-9b21-0f6d8c3e1a57', { method: 'PATCH', headers: { Authorization: `Bearer ${process.env.FACETRUST_API_KEY}`, 'Content-Type': 'application/json', }, body: JSON.stringify({ "fields": { "seat_number": "B04" } }), }); const data = await res.json();
import os, uuid, requests res = requests.patch( "https://api.facetrustai.com/v1/registries/3f9a1c2e-7b4d-4e6a-9c8b-2d1e0f5a6b7c/profiles/7c1e2a4b-5d3f-4e8a-9b21-0f6d8c3e1a57", headers={"Authorization": f"Bearer {os.environ['FACETRUST_API_KEY']}"}, json={ "fields": { "seat_number": "B04" } }, timeout=15, ) res.raise_for_status() data = res.json()
200 · application/json
{
"id": "7c1e2a4b-5d3f-4e8a-9b21-0f6d8c3e1a57",
"primaryKey": "CFU/24/1068",
"fullName": "Adaeze Okafor",
"phone": "+2348030000000",
"email": "adaeze@example.com",
"fields": {
"faculty": "Sciences",
"department": "Computer Science",
"level": "300",
"hostel_block": "Block B"
},
"registryId": "3f9a1c2e-7b4d-4e6a-9c8b-2d1e0f5a6b7c",
"enrollmentStatus": "enrolled",
"enrolledAt": "2026-10-02T14:20:11Z",
"createdAt": "2026-09-28T08:00:00Z",
"updatedAt": "2026-11-19T09:12:40Z"
}200 · application/json
{
"id": "7c1e2a4b-5d3f-4e8a-9b21-0f6d8c3e1a57",
"primaryKey": "NBL-00344",
"fullName": "Adaeze Okafor",
"phone": "+2348030000000",
"email": "adaeze@example.com",
"fields": {
"department": "Operations",
"job_title": "Fleet Supervisor",
"access_level": "Standard",
"manager_email": "ops.lead@example.com"
},
"registryId": "3f9a1c2e-7b4d-4e6a-9c8b-2d1e0f5a6b7c",
"enrollmentStatus": "enrolled",
"enrolledAt": "2026-10-02T14:20:11Z",
"createdAt": "2026-09-28T08:00:00Z",
"updatedAt": "2026-11-19T09:12:40Z"
}200 · application/json
{
"id": "7c1e2a4b-5d3f-4e8a-9b21-0f6d8c3e1a57",
"primaryKey": "TKT-88123",
"fullName": "Adaeze Okafor",
"phone": "+2348030000000",
"email": "adaeze@example.com",
"fields": {
"pass_type": "VIP",
"seat_number": "A12",
"event_date": "2026-11-19"
},
"registryId": "3f9a1c2e-7b4d-4e6a-9c8b-2d1e0f5a6b7c",
"enrollmentStatus": "enrolled",
"enrolledAt": "2026-10-02T14:20:11Z",
"createdAt": "2026-09-28T08:00:00Z",
"updatedAt": "2026-11-19T09:12:40Z"
}Use it for
Push changes such as a department move or a new phone number.
Headers#
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer <key>, a key with the profiles:write scope. See Authentication. |
Content-Type | Yes | application/json |
Path parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
registryId | uuid | Yes | Your registry. Shown on this page and in the console under Registry. |
profileId | uuid | Yes | The person’s ID, returned when you create or look them up. |
Body parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
fields | object | No | Only the keys you send change. |
Response#
Returns 200 with the body shown in the response example. Examples follow the account type selected at the top of the page.
Shown above, with the request.
Errors#
| Code | HTTP | Meaning |
|---|---|---|
unauthorized | 401 | Missing, malformed, revoked or expired API key. |
forbidden_scope | 403 | The key doesn’t have the scope this endpoint needs. |
account_type_forbidden | 403 | This endpoint isn’t available to your account type. |
module_disabled | 403 | The module is switched off for your account. Contact FaceTrust. |
ip_not_allowed | 403 | The request came from an IP outside the key’s allowlist. |
rate_limited | 429 | Too many requests. Wait for Retry-After seconds. |
not_found | 404 | No such resource in your institution. |
validation_failed | 422 | The request body failed validation; see fields for per-field errors. |