Skip to content

Update Document

Update an existing document in Last Mile Intelligence.

updateDocument

document

ParameterTypeRequiredDefaultDescription
Document IDstringYes-The ID of the document to update
Document DataJSONYes-Fields to update
{
"id": "doc_abc123",
"name": "Updated Document Name",
"type": "receipt",
"mimeType": "application/pdf",
"updatedAt": "2024-06-21T10:30:00Z"
}
{
"success": false,
"error": "Document not found",
"documentId": "invalid_id"
}
  • Missing API Token: LMI credential is missing API token
  • Document Not Found: Document with specified ID does not exist
  • Validation Error: Invalid data format in update fields
  • Permission Denied: API token lacks permission for this operation