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 public state. This endpoint is kept for backward compatibility and should not be used in new integrations.
Autenticación
x-api-keystring
Autenticación con clave API vía encabezado
Parámetros de ruta
idstringRequerido
id of the document which type will be changed
Solicitud
This endpoint expects an object.
publicStateenumRequerido
Valores permitidos:
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> } ].”
typeenumOpcional
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
mimetypestringOpcional
datamap from strings to anyOpcional
Extracted document data. Structure varies by document type.
Indicates whether the document has been logically deleted
duplicatedbooleanOpcionalDeprecated
Errores
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 public state. This endpoint is kept for backward compatibility and should not be used in new integrations.