Update document
PUT /v2/document/{documentId}
PUT
/v2/document/{documentId}
Update a document by document ID
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” documentId
required
string
A document Id
Example
f52b1f9e-b9a6-4248-afc5-d3ae358e723a
Query Parameters
Section titled “Query Parameters ” uploadUrl
boolean
Return the url for upload the document directly to s3 (deprecated)
Header Parameters
Section titled “Header Parameters ” X-API-Key
string
API Key
X-API-Secret
string
API Secret
Request Body required
Section titled “Request Body required ”object
id
required
The document id to update
string
f52b1f9e-b9a6-4248-afc5-d3ae358e723a
docType
The Document Type
string
invoice
isPublic
The Document is Public
boolean
Responses
Section titled “ Responses ”The resource has been successfully updated.
object
documentId
A document Id
string
f52b1f9e-b9a6-4248-afc5-d3ae358e723a
refId
A reference Id
string
b7e6a1c2-3f4d-4e2a-9c1a-2b3c4d5e6f7a
docExt
A document extension
string
application/pdf
docName
A document name
string
Invoice Q1 2024
docType
A document type
string
invoice
uploadBatchId
An upload batch Id
string
f52b1f9e-b9a6-4248-afc5-d3ae358e723a
isPublic
Set the visibility of the document and its data
boolean
source
The origin of the document upload
string
groupId
The group id to add the document to
string
e3f4d5c6-7a8b-4e2a-9c1a-2b3c4d5e6f7a
prompts
A prompt array
Array<object>
object
id
required
A prompt Id
string
a1b2c3d4-5678-4e2a-9c1a-2b3c4d5e6f7a
name
required
A prompt name
string
Summary
fieldType
required
A field type
string
text
format
required
A format
string
string
description
required
A description
string
Whats the summary of the document?
itemType
An item type
string
string
children
Array<object> recursive
[ { "id": "1", "name": "Total", "fieldType": "number", "format": "currency", "description": "The total amount of the document" }]
webhookId
The webhook id to send the document to
string
f52b1f9e-b9a6-4248-afc5-d3ae358e723a
bulkDocumentId
The bulk document id to add the document to
string
f52b1f9e-b9a6-4248-afc5-d3ae358e723a