---
title: "Create Day Part"
method: POST
path: "/v1/flight/{FlightID}/dayparting"
---

# Create Day Part

`POST /v1/flight/{FlightID}/dayparting`

## Request

- Base URL: `https://api.kevel.co`
- URL: `https://api.kevel.co/v1/flight/{FlightID}/dayparting`
- Auth: API key in header `X-Adzerk-ApiKey`

## Path parameters

- `FlightID` integer, required

## Request body

- object
  - `StartTime` string, required: A start time for the day part, in the format of `HH:MM:SS`. Uses the local time of the flight based on the flight's TimeZone. Granularity is at the minute level.
  - `EndTime` string, required: A start time for the day part, in the format of `HH:MM:SS`. Uses the local time of the flight based on the flight's TimeZone. Granularity is at the minute level.
  - `WeekDays` string[], required: One or more days of the week the day part applies to, in the form of: `"SU" "MO" "TU" "WE" "TH" "FR" "SA"`

## Response `201`

201

- object
  - `TimepartId` integer

## Other responses

- `400`: 400

---

[API](https://skmtc.dev/kevel/apis/adzerk-management-apis.md) - [All operations](https://skmtc.dev/kevel/apis/adzerk-management-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/kevel/apis/adzerk-management-apis/revisions/01ab38426629?raw)
