Update Workflow
Update an existing workflow in Last Mile Intelligence.
Operation
Section titled “Operation”updateWorkflow
Resource
Section titled “Resource”workflow
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Workflow ID | string | Yes | - | The ID of the workflow to update |
| Workflow Data | JSON | Yes | - | Fields to update |
Response
Section titled “Response”Success
Section titled “Success”{ "id": "wf_order_process", "name": "Order Processing Workflow v2", "steps": [ { "id": "step_1", "action": "validate_order", "order": 1 }, { "id": "step_2", "action": "check_inventory", "order": 2 }, { "id": "step_3", "action": "assign_route", "order": 3 } ], "updatedAt": "2024-06-21T10:30:00Z"}{ "success": false, "error": "Workflow not found", "workflowId": "invalid_id"}Error Handling
Section titled “Error Handling”- Missing API Token: LMI credential is missing API token
- Workflow Not Found: Workflow with specified ID does not exist
- Invalid Steps: Updated workflow steps are malformed
- Permission Denied: API token lacks permission for this operation