v1

latestOpenAPI 3.0.02026-07-1398671635.1 KB
Delivery Pools API
publicly-accessible

Set the delivery pools daily start and end times

Set the daily start and end times for a pool or set closed flag if the pool does not operate on that day. Start and end times for all days must be provided. Though the API accepts array of start and end times for each day, multiple start and end time for a day are not accepted. If the end time for a day is equal to or before start time, end time will be considered as time for the next day.

put/delivery/pools/{deliveryPoolId}/hours

Request body

Example request

{
  "monday": {
    "closed": false,
    "poolTimes": [
      {
        "startTime": "09:00",
        "endTime": "21:00"
      }
    ]
  },
  "tuesday": {
    "closed": true,
    "poolTimes": [
      {
        "startTime": "10:00",
        "endTime": "19:00"
      }
    ]
  },
  "wednesday": {
    "closed": false,
    "poolTimes": [
      {
        "startTime": "08:00",
        "endTime": "18:00"
      }
    ]
  },
  "thursday": {
    "closed": false,
    "poolTimes": [
      {
        "startTime": "12:00",
        "endTime": "03:00"
      }
    ]
  },
  "friday": {
    "closed": false,
    "poolTimes": [
      {
        "startTime": "12:00",
        "endTime": "01:00"
      }
    ]
  },
  "saturday": {
    "closed": false,
    "poolTimes": [
      {
        "startTime": "11:00",
        "endTime": "23:00"
      }
    ]
  },
  "sunday": {
    "closed": false,
    "poolTimes": [
      {
        "startTime": "13:00",
        "endTime": "19:00"
      }
    ]
  }
}

Response

Pool hours have been updated