---
updatedAt: 2025-09-18T22:00:37.000Z
agentTools:
  projectIndex: https://dev.kevel.com/llms.txt
---

# 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:

* `GET` - the type of API request being made.
* `https://api.kevel.co` - the URL for the request.
* `v1` - the API version.
* `flight` - the API endpoint being called.
* `FlightID` - The ID associated with the flight.
* `dayparting` - the day part entities associated with the flight.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "kevel-api",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.kevel.co"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/v1/flight/{FlightID}/dayparting": {
      "get": {
        "summary": "List Day Parts",
        "description": "",
        "operationId": "list-day-parts",
        "parameters": [
          {
            "name": "FlightID",
            "in": "path",
            "description": "The ID of the flight",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"page\": 1,\n  \"items\": [\n    {\n      \"Id\": 67890,\n      \"StartTime\": \"09:30:00\",\n      \"EndTime\": \"17:00:00\",\n      \"FlightId\": 12345,\n      \"WeekDays\": [\n        \"MO\",\n        \"TU\",\n      ]\n    },\n    {\n      \"Id\": 67891,\n      \"StartTime\": \"10:00:00\",\n      \"EndTime\": \"23:00:00\",\n      \"FlightId\": 12345,\n      \"WeekDays\": [\n        \"SU\",\n        \"SA\"\n      ]\n    }\n  ]\n}"
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"message\": \"Flight not found for specified Network and Flight Id\",\n  \"action\": \"ListTimeparts\",\n  \"values\": {\n    \"FlightId\": 123456\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "Flight not found for specified Network and Flight Id"
                    },
                    "action": {
                      "type": "string",
                      "example": "ListTimeparts"
                    },
                    "values": {
                      "type": "object",
                      "properties": {
                        "FlightId": {
                          "type": "integer",
                          "example": 123456,
                          "default": 0
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "curl",
              "code": "curl -g -H \"X-Adzerk-ApiKey:$ADZERK_API_KEY\" \"https://api.kevel.co/v1/flight/12345/dayparting\""
            },
            {
              "language": "javascript",
              "code": "const Adzerk = require('@adzerk/management-sdk');\nconst apiKey = process.env.ADZERK_API_KEY;\n\nasync function listDayParts() {\n  let specifications = await Adzerk.fetchSpecifications();\n  let client = await Adzerk.buildClient({apiKey, specifications});\n\n  let list = await client.run('dayPart', 'list', {flightId: 12345});\n  console.log(list);\n}\n\nlistDayParts();"
            },
            {
              "language": "ruby",
              "code": "require \"adzerk\"\n\ndef list_day_part()\n    client = Adzerk::Client.new(ENV[\"ADZERK_API_KEY\"])\n    flight_id = 12345\n    pp client.day_parts.list(flight_id)\nend\nlist_day_part()"
            }
          ],
          "samples-languages": [
            "curl",
            "javascript",
            "ruby"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```