update_site
PATCH /v1/kya/sites/{id} renames a site or replaces the origins it takes reports from.
Send name, origins or both. origins replaces the whole list; see Origins.
Renames a site or replaces its origins: send name, origins or both. Its key stays the same. A change to its origins takes up to a minute to apply to reports.
Path parameters
| Field | Type | Description |
|---|---|---|
idrequired | string | The site's |
Request body
application/json
| Field | Type | Description |
|---|---|---|
name | string | A new name. |
origins | array of string | Optional. The origins whose pages reports are taken from, each a scheme and host such as |
Responses
The site, as changed.
| Field | Type | Description |
|---|---|---|
id | string | The site's id, |
name | string | Its name. Empty if none was given. |
key | string | Its public key, |
origins | array of string | The origins reports are taken from. Empty means any page. |
snippet | string | The script tag to paste into your pages. Only when the site is created. |
created_at | string | When the site was created. |
request_id | string |
|
| Status | Type and when |
|---|---|
400 |
|
401 |
|
404 |
|
429 |
|
Every error has the same shape; see Errors.
Examples
curl -X PATCH 'https://api.finic.ai/v1/kya/sites/string' \ -H "Authorization: Bearer $FINIC_API_KEY" \ -H 'Content-Type: application/json' \ -d '{ "origins": [ "https://www.example.com", "https://shop.example.com" ]}'{ "id": "kst_01M4Z1X3G5P8D2F6J0YA4SMQNC", "name": "Storefront", "key": "gpk_Zk3vQ8mT1xR7bN2cYw5LpA9d", "origins": [ "https://www.example.com", "https://shop.example.com" ], "created_at": "2026-12-01T17:01:52.310447Z", "request_id": "req_01M4Z2M1T6W9E3R7Y5VA8PKGHB"}