Schedules

Events

Action Event name
create a new schedule schedule.created
update an existing schedule schedule.updated
add a child schedule schedule.updated
remove the child schedule schedule.updated
delete an existing schedule schedule.deleted

Payload example created/updated

{
  "id": "string",
  "attemptId": "string",
  "livemode": "boolean",
  "created": "int",
  "event": "string",
  "data": {
    "id": "string",
    "name": "string",
    "displayName": "string",
    "time": "string",
    "fromDate": "string",
    "toDate": "string",
    "controlPoints": "array",
    "fromDateYYYYMMDD": "string",
    "toDateYYYYMMDD": "string",
    "dow": {
      "monday": "N",
      "tuesday": "N",
      "wednesday": "N",
      "thursday": "N",
      "friday": "Y",
      "saturday": "N",
      "sunday": "N",
      "holidaysIncluded": "N",
      "holidaysOnly": "N"
    },
    "capacity": 35,
    "legs": [
      {
        "legord": 0,
        "departure": "10:00",
        "arrival": "11:30",
        "fromId": "string",
        "toId": "string",
        "from": "string",
        "to": "string"
      }
    ],
    "from": "string",
    "to": "string",
    "fromId": "string",
    "toId": "string",
    "brandId": "string or null",
    "brandName": "string or null",
    "operatingCompanyId": "string or null",
    "operatingCompanyName": "string or null",
    "operatingCompanyInfoOnPrintedTicket": "string or null",
    "amenityGroupId": "string or null",
    "inventoryId": "string or null",
    "seatMapId": "string or null",
    "isExtraRun": "boolean",
    "serviceNumberId": "string or null",
    "createdBy": "string or null",
    "duration": "number",
    "routeId": "string",
    "amenityGroupIds": "array",
    "defaultManifestStatus": "string",
    "standingPassengerCapacity": "number"
  }
}

Deleted payload example

{
    "attemptId": "3f962294-3382-4e4f-a078-15b83714033e",
    "created": 1725459554,
    "data": {
      "id": "d125b58d-2b6d-4dd2-af3b-f9913ac493ac",
      "controlPoints": [
        {
          "expectedOffset": 0,
          "stationId": "52a378c1430c7d4e2200020c"
        },
        {
          "expectedOffset": 0,
          "stationId": "66686eba68b1920502c4a9b9"
        }
      ]
    },
    "event": "schedule.deleted",
    "id": "002c5f7f-04c5-4a80-8688-78c1f9d4d979",
    "livemode": false
}