Update or add fields¶
PATCH /document-intelligence/v1/collections/{collection_id}/fields
Update the fields named in the body (create any that do not exist yet). Fields not mentioned are left untouched.
Parameters¶
| Name | In | Required | Notes |
|---|---|---|---|
collection_id |
path | yes | - |
Request body¶
| Field | Type | Required | Notes |
|---|---|---|---|
fields |
array of FieldIn | yes | - |
Example¶
curl -X PATCH "https://api.futuresmart.ai/document-intelligence/v1/collections/{collection_id}/fields" \
-H "Authorization: Bearer $FS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"fields": [
{
"name": "<name>"
}
]
}'
Responses¶
200
| Field | Type | Required | Notes |
|---|---|---|---|
fields |
array of FieldOut | yes | - |
Every failure, a malformed request included, comes back in the shared envelope with a stable code to branch on. See Errors.