Registries & schema
Update a registry
PATCH
/registries/{registryId}Rename it or edit the field schema. Changes that would orphan or invalidate existing data are rejected unless you pass force=true.
curl -X PATCH "https://api.facetrustai.com/v1/registries/3f9a1c2e-7b4d-4e6a-9c8b-2d1e0f5a6b7c" \ -H "Authorization: Bearer $FACETRUST_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "Main register 2026", "fields": [ { "key": "department", "label": "Department", "type": "text", "required": true } ] }'
// 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', { method: 'PATCH', headers: { Authorization: `Bearer ${process.env.FACETRUST_API_KEY}`, 'Content-Type': 'application/json', }, body: JSON.stringify({ "name": "Main register 2026", "fields": [ { "key": "department", "label": "Department", "type": "text", "required": true } ] }), }); const data = await res.json();
import os, uuid, requests res = requests.patch( "https://api.facetrustai.com/v1/registries/3f9a1c2e-7b4d-4e6a-9c8b-2d1e0f5a6b7c", headers={"Authorization": f"Bearer {os.environ['FACETRUST_API_KEY']}"}, json={ "name": "Main register 2026", "fields": [ { "key": "department", "label": "Department", "type": "text", "required": True } ] }, timeout=15, ) res.raise_for_status() data = res.json()
curl -X PATCH "https://api.facetrustai.com/v1/registries/3f9a1c2e-7b4d-4e6a-9c8b-2d1e0f5a6b7c" \ -H "Authorization: Bearer $FACETRUST_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "Main register 2026", "fields": [ { "key": "department", "label": "Department", "type": "text", "required": true } ] }'
// 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', { method: 'PATCH', headers: { Authorization: `Bearer ${process.env.FACETRUST_API_KEY}`, 'Content-Type': 'application/json', }, body: JSON.stringify({ "name": "Main register 2026", "fields": [ { "key": "department", "label": "Department", "type": "text", "required": true } ] }), }); const data = await res.json();
import os, uuid, requests res = requests.patch( "https://api.facetrustai.com/v1/registries/3f9a1c2e-7b4d-4e6a-9c8b-2d1e0f5a6b7c", headers={"Authorization": f"Bearer {os.environ['FACETRUST_API_KEY']}"}, json={ "name": "Main register 2026", "fields": [ { "key": "department", "label": "Department", "type": "text", "required": True } ] }, timeout=15, ) res.raise_for_status() data = res.json()
curl -X PATCH "https://api.facetrustai.com/v1/registries/3f9a1c2e-7b4d-4e6a-9c8b-2d1e0f5a6b7c" \ -H "Authorization: Bearer $FACETRUST_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "Main register 2026", "fields": [ { "key": "department", "label": "Department", "type": "text", "required": true } ] }'
// 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', { method: 'PATCH', headers: { Authorization: `Bearer ${process.env.FACETRUST_API_KEY}`, 'Content-Type': 'application/json', }, body: JSON.stringify({ "name": "Main register 2026", "fields": [ { "key": "department", "label": "Department", "type": "text", "required": true } ] }), }); const data = await res.json();
import os, uuid, requests res = requests.patch( "https://api.facetrustai.com/v1/registries/3f9a1c2e-7b4d-4e6a-9c8b-2d1e0f5a6b7c", headers={"Authorization": f"Bearer {os.environ['FACETRUST_API_KEY']}"}, json={ "name": "Main register 2026", "fields": [ { "key": "department", "label": "Department", "type": "text", "required": True } ] }, timeout=15, ) res.raise_for_status() data = res.json()
200 · application/json
{
"id": "3f9a1c2e-7b4d-4e6a-9c8b-2d1e0f5a6b7c",
"name": "Main register 2026",
"updatedAt": "2026-11-19T09:12:40Z"
}200 · application/json
{
"id": "3f9a1c2e-7b4d-4e6a-9c8b-2d1e0f5a6b7c",
"name": "Main register 2026",
"updatedAt": "2026-11-19T09:12:40Z"
}200 · application/json
{
"id": "3f9a1c2e-7b4d-4e6a-9c8b-2d1e0f5a6b7c",
"name": "Main register 2026",
"updatedAt": "2026-11-19T09:12:40Z"
}Use it for
Keep the schema in step with your source system.
Headers#
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer <key>, a key with the registry: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. |
Query parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
force | boolean | No | Apply a change that affects existing people (409 otherwise). |
Body parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | No | New name. |
fields | RegistryField[] | No | The complete new schema. |
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. |