curl --request PUT \
--url https://apiweb.mile.app/api/v3/flow/{flowId}/restore/{flowLogId} \
--header 'Authorization: Bearer <token>'{
"status": true,
"code": 200,
"message": "Flow has been updated successfully.",
"data": {
"_id": "6853f0cbb83015e4c60279f2",
"name": "Packing",
"pages": [
{
"id": "page0",
"enabled": true,
"components": [
{
"component": "input",
"id": "orderNumber",
"title": "Order Number",
"inputType": "string",
"default": null,
"routeAs": null,
"showAs": null,
"isRequired": false,
"visible": true,
"preValue": null
},
{
"component": "input",
"id": "number",
"title": "Number",
"inputType": "number",
"default": null,
"routeAs": null,
"showAs": null,
"isRequired": false,
"visible": true,
"preValue": null
},
{
"component": "select",
"id": "sel",
"title": "Sel",
"min": 1,
"max": 1,
"default": null,
"routeAs": null,
"showAs": null,
"options": [
"a",
"b"
],
"inputType": "string",
"onSelect": [],
"visible": true,
"preValue": null
}
]
},
{
"id": "page1",
"title": "Confirmation",
"components": [
{
"component": "view",
"id": "code",
"inputType": "string",
"title": "Code",
"value": "$orderNumber",
"visible": true,
"preValue": "$orderNumber"
}
],
"showTooltip": false
}
],
"configurations": [
{
"id": "startTime",
"adjustment": 0
},
{
"id": "endTime",
"adjustment": 24
}
],
"organizationId": "66791b2bf001a712b77b3622",
"version": 4,
"createdBy": "admin@mile.app",
"orderIndex": 72,
"updatedTime": "2025-06-20T04:00:16.727000Z",
"createdTime": "2025-06-19T11:13:15.550000Z",
"updatedBy": "admin@mile.app"
}
}curl --request PUT \
--url https://apiweb.mile.app/api/v3/flow/{flowId}/restore/{flowLogId} \
--header 'Authorization: Bearer <token>'{
"status": true,
"code": 200,
"message": "Flow has been updated successfully.",
"data": {
"_id": "6853f0cbb83015e4c60279f2",
"name": "Packing",
"pages": [
{
"id": "page0",
"enabled": true,
"components": [
{
"component": "input",
"id": "orderNumber",
"title": "Order Number",
"inputType": "string",
"default": null,
"routeAs": null,
"showAs": null,
"isRequired": false,
"visible": true,
"preValue": null
},
{
"component": "input",
"id": "number",
"title": "Number",
"inputType": "number",
"default": null,
"routeAs": null,
"showAs": null,
"isRequired": false,
"visible": true,
"preValue": null
},
{
"component": "select",
"id": "sel",
"title": "Sel",
"min": 1,
"max": 1,
"default": null,
"routeAs": null,
"showAs": null,
"options": [
"a",
"b"
],
"inputType": "string",
"onSelect": [],
"visible": true,
"preValue": null
}
]
},
{
"id": "page1",
"title": "Confirmation",
"components": [
{
"component": "view",
"id": "code",
"inputType": "string",
"title": "Code",
"value": "$orderNumber",
"visible": true,
"preValue": "$orderNumber"
}
],
"showTooltip": false
}
],
"configurations": [
{
"id": "startTime",
"adjustment": 0
},
{
"id": "endTime",
"adjustment": 24
}
],
"organizationId": "66791b2bf001a712b77b3622",
"version": 4,
"createdBy": "admin@mile.app",
"orderIndex": 72,
"updatedTime": "2025-06-20T04:00:16.727000Z",
"createdTime": "2025-06-19T11:13:15.550000Z",
"updatedBy": "admin@mile.app"
}
}Use a valid Bearer token to authenticate.
The unique identifier of organization's flow.
Use Flow /flows API to get the list of flow ID's.
Example: 6352736c628401059b37a1d1
The unique name of organization's flow.
Use Flow Log Histories API to get the list of flow log ID's.
Example: 9f52736c628401059b37as34