**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.
Solicitud
This endpoint expects an object.
typestringRequerido
Document type ID or alias (e.g., “invoice”, “receipt”, or a custom type ID from your environment)
Respuesta
Updated document
_idstringOpcionalformat: "DocumentId"
accountstringOpcionalformat: "AccountId"
Account the document belongs to.
environmentstringOpcionalformat: "EnvironmentId"
Environment the document belongs to.
companystringOpcionalformat: "CompanyId"
Company the document belongs to.
creatorstringOpcionalformat: "UserId"
User that uploaded the document
clientDataobjectOpcional
“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> } ].”
namestringOpcional
Original name of the uploaded file
isGroundTruthbooleanOpcional
Indicates the document is marked as Ground Truth (GT)
creationstringOpcionalformat: "date-time"
Upload timestamp
imageslist of stringsOpcional
Array of Azure Storage URLs (SAS) to access the document extracted images
originalstringOpcionalformat: "URL"
Azure Storage URL (SAS) to access the original file
datamap from strings to anyOpcional
Extracted document data. Structure varies by document type.
publicStateenumOpcionalValor predeterminado: processing
processInfoobjectOpcional
validationInfoobjectOpcional
approvalInfoobjectOpcional
exportslist of objectsOpcional
deletedbooleanOpcional
Indicates whether the document has been logically deleted
duplicatedbooleanOpcionalDeprecated