Update Document
Update an existing document in Last Mile Intelligence.
Operation
Section titled “Operation”updateDocument
Resource
Section titled “Resource”document
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Document ID | string | Yes | - | The ID of the document to update |
| Document Data | JSON | Yes | - | Fields to update |
Response
Section titled “Response”Success
Section titled “Success”{ "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"}Error Handling
Section titled “Error Handling”- 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