Update document
PATCH/documents/:documentId
Update a document's details, i.e., metadata
If no content is specified, the endpoint will return a S3 Presigned that will allow for the uploading of Large document data.
NOTE:
- provided attributes will overwrite existing matching attribute keys in the document. Attributes not included in the request body will remain unchanged.
Request
Path Parameters
Document Identifier
Query Parameters
Site Identifier
Share Identifier
- application/json
Body
required
Array [
]
Array [
]
Array [
- AddDocumentAttributeStandard
- AddDocumentAttributeClassification
- AddDocumentAttributeRelationship
]
Array [
]
Array [
Array [
]
Array [
]
]
Path or Name of document
Document Content Width property
Document Content Height property
Path or Name of deep link
Document media type
Is the content Base64-encoded?
Document content
Document checksum, changes when document file changes
The type of checksum to use for file validation
Possible values: [SHA1
, SHA256
]
tags
object[]
List of document tags
Tag key
Tag value
Tag values
metadata
object[]
List of document Metadata
Metadata key
Metadata value
Metadata values
attributes
object[]
List of document attributes
oneOf
Document Attribute
Attribute key
Attribute with string value
Attribute with string values
Attribute with number value
Attribute with number values
Attribute with boolean value
Document Classification
Classification Identifier
Document Relationship
Relationship To Document Identifier
Document Relationship Type
Possible values: [PRIMARY
, ATTACHMENT
, APPENDIX
, SUPPLEMENT
, ASSOCIATED
, RENDITION
]
Document Relationship Type
Possible values: [PRIMARY
, ATTACHMENT
, APPENDIX
, SUPPLEMENT
, ASSOCIATED
, RENDITION
]
actions
object[]
List of Actions
Type of the Document Action
Possible values: [ANTIVIRUS
, DOCUMENTTAGGING
, FULLTEXT
, NOTIFICATION
, OCR
, QUEUE
, WEBHOOK
, IDP
, PUBLISH
, PDFEXPORT
, EVENTBRIDGE
]
parameters
object
OCR: Parse types - TEXT, FORMS, TABLES
Type of OCR Engine to use
Possible values: [TESSERACT
, TEXTRACT
]
OCR Engine output format (textract table only)
Possible values: [CSV
]
Number of pages to OCR (from start) (-1 all)
OCR: For the rewriting of the PDF document, converting any image text to searchable text
Webhook: Callback URL
Fulltext: Maximum number of characters (-1 unlimited, Typesense defaults to 2048 characters)
DocumentTagging: Engine to use for document tagging generation
Possible values: [chatgpt
]
Notification Type
Possible values: [email
]
Who to carbon copy on the notification to (comma-delimited list)
Who to blind carbon copy on the notification to (comma-delimited list)
Subject of the notification
Text of the notification
Html of the notification
DocumentTagging: Comma-deliminted list of keywords to generate tags for
Id of Mapping
The name or ARN of the event bus to receive the event
Id of Queue
documents
object[]
List of child documents
Path or Name of document
Document Content Width property
Document Content Height property
Path or Name of deep link
Document Content-Type
The type of checksum to use for file validation
Possible values: [SHA1
, SHA256
]
The checksum value to validate the file against
Is the content Base64-encoded?
Document content
tags
object[]
List of document tags
Tag key
Tag value
Tag values
metadata
object[]
List of document Metadata
Metadata key
Metadata value
Metadata values
Responses
- 200
- 400
200 OK
Response Headers
Access-Control-Allow-Origin
string
Access-Control-Allow-Methods
string
Access-Control-Allow-Headers
string
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Document Identifier
Site Identifier
Url to upload document to
headers
object
documents
object[]
List of child documents
Document Identifier
Url to upload document to
headers
object
{
"documentId": "string",
"siteId": "string",
"uploadUrl": "string",
"headers": {},
"documents": [
{
"documentId": "string",
"uploadUrl": "string",
"headers": {}
}
]
}
400 OK
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
errors
object[]
List of errors
Error Key
Error Message
{
"errors": [
{
"key": "string",
"error": "string"
}
]
}