Get All Custom Lists

From MyMobileWorkers API
Revision as of 11:23, 27 July 2017 by DanielleH (Talk | contribs)

Jump to: navigation, search

Summary

Jobs
URL https://:base_url/:api_path/:version/lists/all?api_key=YOUR_KEY
Type GET
Params: api_key required
branch optional
Response JSON

The get all custom lists method returns lists corresponding to the company api key supplied in the request and branch if it is in the params of the request.

Example response

[
  {
    "name": "Delivery sites",
    "description": "A list of delivery sites in the area",
    "branch": null,
    "created_at": "2017-07-11T09:40:42+00:00",
    "updated_at": "2017-07-20T16:22:21+00:00",
    "list_key": "delivery_site1",
    "list_items": [
      {
        "name": "Aldcliffe Site",
        "notes": "small",
        "external_id": "12",
        "created_at": "2017-07-14T15:45:53+00:00",
        "updated_at": "2017-07-14T15:45:53+00:00",
        "order_position": 5
      },
      {
        "name": "Bond Estate",
        "notes": "medium",
        "external_id": "13",
        "created_at": "2017-07-14T15:00:14+00:00",
        "updated_at": "2017-07-14T15:00:14+00:00",
        "order_position": 6
      },
      {
        "name": "Beech Centre",
        "notes": "Small",
        "external_id": "",
        "created_at": "2017-07-20T16:22:21+00:00",
        "updated_at": "2017-07-20T16:22:21+00:00",
        "order_position": 0
      }
    ]
  },
  {
    "name": "Pick up Sites",
    "description": "Pick up sites in the area",
    "branch": null,
    "created_at": "2017-07-12T10:12:23+00:00",
    "updated_at": "2017-07-12T10:12:23+00:00",
    "list_key": "pickup_site",
    "list_items": []
  }
]
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox