update_business_record
PATCH /v1/businesses/{id}/{collection}/{object_id}: changes the fields sent; `null` removes a field.
Changes the fields sent; null removes a field. Changing a screened field, such as a person's name, screens the record again. A record Finic kept becomes yours when you change it, and Finic doesn't replace it again.
Request body
application/json
| Field | Type | Description |
|---|---|---|
id | string |
|
business_id | string | |
external_id | string or null | |
metadata | object | |
occurred_at | string or null | |
source_url | string or null | |
source | customer, finic |
|
screenings | object | Each kind's current screening: |
created_at | string | |
updated_at | string |
| Field | Type | Description |
|---|---|---|
id | string | |
state | pending, clear, needs_review, confirmed, false_positive, inconclusive |
|
reason | string or null |
Responses
The record.
| Field | Type | Description |
|---|---|---|
id | string |
|
business_id | string | |
external_id | string or null | |
metadata | object | |
occurred_at | string or null | |
source_url | string or null | |
source | customer, finic |
|
screenings | object | Each kind's current screening: |
created_at | string | |
updated_at | string |
| Field | Type | Description |
|---|---|---|
id | string | |
state | pending, clear, needs_review, confirmed, false_positive, inconclusive |
|
reason | string or null |
| Status | Type and when |
|---|---|
400 |
|
401 |
|
404 |
|
Every error has the same shape; see Errors.
Examples
curl -X PATCH 'https://api.finic.ai/v1/businesses/string/people/string' \ -H "Authorization: Bearer $FINIC_API_KEY" \ -H 'Content-Type: application/json' \ -d '{ "title": "CEO"}'{ "id": "string", "business_id": "string", "external_id": "string", "metadata": {}, "occurred_at": "2019-08-24T14:15:22Z", "source_url": "string", "source": "customer", "screenings": { "property1": { "id": "string", "state": "pending", "reason": "string" }, "property2": { "id": "string", "state": "pending", "reason": "string" } }, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}