List Day Parts

Why List Day Parts?

If you would like to review existing day parts for a flight, the Kevel API enables you to return all day part entities for a specific flight using the List Day Parts API endpoint with the FlightID query parameter to filter results for only that flight.

API Syntax

When using the List Day Parts API endpoint, it is important to understand the syntax required to make the request. Because the Kevel API is a RESTful API, there is a specific request format that must be followed to ensure the endpoint can process the request. The format is:

GET https://api.kevel.co/v1/flight/{FlightID}/dayparting

Where:

FlightID

int32

required
The ID of the flight

Response Format

Success 200

{
  "page": 1,
  "items": [
    {
      "Id": 67890,
      "StartTime": "09:30:00",
      "EndTime": "17:00:00",
      "FlightId": 12345,
      "WeekDays": [
        "MO",
        "TU"
      ]
    },
    {
      "Id": 67891,
      "StartTime": "10:00:00",
      "EndTime": "23:00:00",
      "FlightId": 12345,
      "WeekDays": [
        "SU",
        "SA"
      ]
    }
  ]
}

Client Error 400

Updated 10 months ago