curl --request POST \
--url https://apiweb.mile.app/api/v3/flows/check-version \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"flows": [
{
"name": "Delivery",
"version": 1
},
{
"name": "Pickup",
"id": "646194ac5f0bb66cbe421e15",
"version": 3
}
],
"allFlow": false
}
'{
"status": true,
"message": "Success",
"flow": [
{
"_id": "628dd180dd11f3369825bcff",
"name": "Delivery",
"pages": [
{
"id": "page0",
"enabled": true,
"components": []
},
{
"id": "page1",
"components": []
}
],
"organizationId": "628dd142dd11f3369825bcf5",
"version": 1,
"updatedTime": "2022-05-25T06:49:36.308000Z",
"createdTime": "2022-05-25T06:49:36.308000Z"
},
{
"_id": "628dd1e5b4f9523e0d3a0305",
"name": "tryBillComponent",
"pages": [
{
"id": "page0",
"components": [
{
"component": "bill",
"id": "bill1",
"title": "BilBilan",
"addNew": false,
"valueRef": null,
"editable": [],
"cost": [
"makan",
"minum",
"tidur"
]
},
{
"component": "input",
"id": "input1",
"title": "namaAktivitas",
"inputType": "string",
"default": null,
"routeAs": null,
"showAs": null,
"isRequired": false
},
{
"component": "input",
"id": "input2",
"title": "Input 2",
"inputType": "string",
"default": "11,22",
"routeAs": null,
"showAs": null,
"isRequired": false,
"useGeoLock": true,
"radius": 1,
"geoLockTrigger": "onTaskStart"
}
]
}
],
"organizationId": "628dd142dd11f3369825bcf5",
"version": 8,
"updatedTime": "2022-05-30T12:03:23.374000Z",
"createdTime": "2022-05-25T06:51:17.322000Z"
},
{
"_id": "6294a50a9b894f0d87037113",
"name": "tryGeoLockComponent",
"pages": [
{
"id": "page0",
"components": []
}
],
"organizationId": "628dd142dd11f3369825bcf5",
"version": 3,
"updatedTime": "2022-05-30T12:02:20.293000Z",
"createdTime": "2022-05-30T11:05:46.644000Z"
}
]
}curl --request POST \
--url https://apiweb.mile.app/api/v3/flows/check-version \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"flows": [
{
"name": "Delivery",
"version": 1
},
{
"name": "Pickup",
"id": "646194ac5f0bb66cbe421e15",
"version": 3
}
],
"allFlow": false
}
'{
"status": true,
"message": "Success",
"flow": [
{
"_id": "628dd180dd11f3369825bcff",
"name": "Delivery",
"pages": [
{
"id": "page0",
"enabled": true,
"components": []
},
{
"id": "page1",
"components": []
}
],
"organizationId": "628dd142dd11f3369825bcf5",
"version": 1,
"updatedTime": "2022-05-25T06:49:36.308000Z",
"createdTime": "2022-05-25T06:49:36.308000Z"
},
{
"_id": "628dd1e5b4f9523e0d3a0305",
"name": "tryBillComponent",
"pages": [
{
"id": "page0",
"components": [
{
"component": "bill",
"id": "bill1",
"title": "BilBilan",
"addNew": false,
"valueRef": null,
"editable": [],
"cost": [
"makan",
"minum",
"tidur"
]
},
{
"component": "input",
"id": "input1",
"title": "namaAktivitas",
"inputType": "string",
"default": null,
"routeAs": null,
"showAs": null,
"isRequired": false
},
{
"component": "input",
"id": "input2",
"title": "Input 2",
"inputType": "string",
"default": "11,22",
"routeAs": null,
"showAs": null,
"isRequired": false,
"useGeoLock": true,
"radius": 1,
"geoLockTrigger": "onTaskStart"
}
]
}
],
"organizationId": "628dd142dd11f3369825bcf5",
"version": 8,
"updatedTime": "2022-05-30T12:03:23.374000Z",
"createdTime": "2022-05-25T06:51:17.322000Z"
},
{
"_id": "6294a50a9b894f0d87037113",
"name": "tryGeoLockComponent",
"pages": [
{
"id": "page0",
"components": []
}
],
"organizationId": "628dd142dd11f3369825bcf5",
"version": 3,
"updatedTime": "2022-05-30T12:02:20.293000Z",
"createdTime": "2022-05-30T11:05:46.644000Z"
}
]
}Documentation Index
Fetch the complete documentation index at: https://docs.mile.app/llms.txt
Use this file to discover all available pages before exploring further.
Use a valid Bearer token to authenticate.
List of flows to check version. Each item must have either id or name.
Show child attributes
Controls whether the API returns all organization flows or only the requested ones.
true (default): Returns all flows.false: Returns only flows matching the requested id or name.
Example: false