For AI agents: a documentation index is available at the root level at /llms.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
**Deprecated.** Use [Update document information](/api-reference/main-reference/documents/update-document-information) (`PUT /documents/{id}`) instead — it now handles all document updates, including changing the document type. This endpoint is kept for backward compatibility and should not be used in new integrations.
Authentication
x-api-keystring
API Key authentication via header
Path parameters
idstringRequired
id of the document which type will be changed
Request
This endpoint expects an object.
typestringRequired
Document type ID or alias (e.g., “invoice”, “receipt”, or a custom type ID from your environment)
Response
Updated document
_idstringOptionalformat: "DocumentId"
accountstringOptionalformat: "AccountId"
Account the document belongs to.
environmentstringOptionalformat: "EnvironmentId"
Environment the document belongs to.
companystringOptionalformat: "CompanyId"
Company the document belongs to.
creatorstringOptionalformat: "UserId"
User that uploaded the document
clientDataobjectOptional
“Additional data to be added to each document. Must be an object
or an array of objects. If data to be specified to each document
is different, this parameter should have the following format:
[ \{ _filename: \<name of the file to which attach this data>, <key>: <value> }, ... \{ _filename: \<name of the file to which attach this data>, <key>: <value> } ].”
typeenumOptional
Allowed values:
namestringOptional
Original name of the uploaded file
isGroundTruthbooleanOptional
Indicates the document is marked as Ground Truth (GT)
creationstringOptionalformat: "date-time"
Upload timestamp
imageslist of stringsOptional
Array of Azure Storage URLs (SAS) to access the document extracted images
originalstringOptionalformat: "URL"
Azure Storage URL (SAS) to access the original file
mimetypestringOptional
datamap from strings to anyOptional
Extracted document data. Structure varies by document type.
publicStateenumOptionalDefaults to processing
confidenceenumOptional
Allowed values:
processInfoobjectOptional
validationInfoobjectOptional
approvalInfoobjectOptional
importobjectOptional
exportslist of objectsOptional
geometryobjectOptional
deletedbooleanOptional
Indicates whether the document has been logically deleted
duplicatedbooleanOptionalDeprecated
Errors
400
Bad Request Error
403
Forbidden Error
410
Gone Error
429
Too Many Requests Error
500
Internal Server Error
Deprecated. Use Update document information (PUT /documents/{id}) instead — it now handles all document updates, including changing the document type. This endpoint is kept for backward compatibility and should not be used in new integrations.