Create a case template
Changed onCreate a template. Cases whose documents match its expected types report completeness against it. Requires the cases:write scope; the person behind the credential must also be allowed to change workspace settings (insufficient_role otherwise). Send an Idempotency-Key to make a retry safe.
Request
- Base URLhttps://api.talonic.com
- AuthHTTP bearer
Headers
Unique key for idempotent requests, at most 64 characters (a longer key is refused with 400 invalid_idempotency_key before any work). A retry with the same key, request and API key within 24 hours returns the first response with Idempotent-Replayed: true; the same key on a different request or from another API key answers 422 idempotency_key_reused. On POST /v1/extract the key caches the extraction result for the workspace instead: any key of the workspace sending it gets that result with cached: true.
Request body
Example request
{
"expected_document_types": [
{
"doc_type_name": "Invoice"
}
],
"link_key_requirements": [
{
"canonical_name": "order_number"
}
]
}Response
The created template.
Example response
{
"expected_document_types": [
{
"doc_type_name": "Invoice"
}
],
"link_key_requirements": [
{
"canonical_name": "order_number"
}
]
}Changes
- info
endpoint added
- info