Skip to content

Update Workflow

Update an existing workflow in Last Mile Intelligence.

updateWorkflow

workflow

ParameterTypeRequiredDefaultDescription
Workflow IDstringYes-The ID of the workflow to update
Workflow DataJSONYes-Fields to update
{
"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"
}
  • 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