Skip to main content
POST
/
flows
/
check-version
Read flow versions
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": "tryGeoLockComponent",
      "version": 3
    }
  ]
}
'
{
  "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"
    }
  ]
}

Authorizations

Authorization
string
header
required

Use a valid Bearer token to authenticate.

Body

application/json
flows
object[]

List of flows Example: { 'name': 'Delivery', 'version': 1 }

Response

Success

status
boolean

Status of response.

message
string

Message of API response.

flow
object

Detail of object flows.