Update Document

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

Path parameters

idstringRequiredformat: "^[^/]+$"

Headers

X-API-KEYstringRequired

Request

This endpoint expects an object.
labelstringOptional>=1 character<=1000 characters

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

statusenumOptional

The current status of the document

  • ACTIVE - Active
Allowed values:
metadatamap from strings to anyOptional

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

Response

idstringformat: "uuid"
last_uploaded_atstringformat: "date-time"
labelstring<=1000 characters

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

processing_stateenum
  • QUEUED - Queued
  • PROCESSING - Processing
  • PROCESSED - Processed
  • FAILED - Failed
  • UNKNOWN - Unknown
Allowed values:
document_to_document_indexeslist of objects
external_idstringOptional<=1000 characters

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

statusenumOptional

The current status of the document

  • ACTIVE - Active
Allowed values:
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.