Update Document

Beta
PATCH

Update a Document, keying off of either its Vellum-generated ID or its external ID. Particularly useful for updating its metadata.

Path parameters

idstringRequired

A UUID string identifying this document.

Request

This endpoint expects an object.
labelstringOptional

A human-readable label for the document. Defaults to the originally uploaded file’s file name.

status"ACTIVE"OptionalDefaults to ACTIVE

The current status of the document

  • ACTIVE - Active
metadatamap from strings to anyOptional

A JSON object containing any metadata associated with the document that you’d like to filter upon later.

Response

This endpoint returns an object.
idstring
last_uploaded_atdatetime
labelstring

A human-readable label for the document. Defaults to the originally uploaded file’s file name.

document_to_document_indexeslist of objects
external_idstringOptional

The unique id of this document as it exists in the user’s system.

processing_stateenumOptional
Allowed values: QUEUEDPROCESSINGPROCESSEDFAILED

The current processing state of the document

  • QUEUED - Queued
  • PROCESSING - Processing
  • PROCESSED - Processed
  • FAILED - Failed
status"ACTIVE"OptionalDefaults to ACTIVE

The current status of the document

  • ACTIVE - Active
original_file_urlstringOptional
processed_file_urlstringOptional
metadatamap from strings to anyOptional

A previously supplied JSON object containing metadata that can be filtered on when searching.