---
title: "POST /api/recurring-slots"
method: POST
path: "/api/recurring-slots"
tags: ["recurring-slots"]
---

# POST /api/recurring-slots

`POST /api/recurring-slots`

## Request

- The document declares no server URL.
- Auth: one of:
  - API key in header `Authorization`
  - API key in cookie `sessionid`

Every recurring slot. Public, like the schedule it produces;
staff create them.

## Request body

- RecurringSlotRequest: Recurring airtime. Each occurrence becomes an airtime grant two Mondays before it airs; the grant copies the slot's time and recipe. Staff create, change and delete slots. A change only affects grants issued after it: grants already issued keep their time and owner.
  - `organization` integer, nullable, required: Who gets the airtime. Unowned slots issue grants to the station.
  - `frequency` 'daily' | 'weekly' | 'monthly': * `daily` - Daily * `weekly` - Weekly * `monthly` - Monthly
  - `interval` integer
  - `weekdays` integer[]: 0 is Monday. Required for weekly and monthly slots; for daily slots, empty means every day.
  - `monthWeeks` integer[]: Monthly slots: which occurrence of the weekday in the month, 1-5, or -1 for the last.
  - `startTime` string, time, required: Wall-clock time in Europe/Oslo.
  - `duration` string, required
  - `startsOn` string, date, required
  - `endsOn` string, date, nullable
  - `recipe` RecipeRequest, nullable: How the slot's grants program themselves. Leave out on a new owner for everything they upload. Null: the grants are set up by hand. A jukebox recipe makes this the station's airtime, with no organization.
    - `kind` 'uploads' | 'series' | 'playlist' | 'jukebox', required: * `uploads` - Everything the owner uploads * `series` - One of the owner's series * `playlist` - A list of videos * `jukebox` - The video jukebox
    - `series` integer, nullable
    - `name` string
    - `categories` integer[]
    - `shortest` string, nullable
    - `longest` string, nullable
    - `newerThanDays` integer, nullable
    - `olderThanDays` integer, nullable

## Response `201`

- RecurringSlot: Recurring airtime. Each occurrence becomes an airtime grant two Mondays before it airs; the grant copies the slot's time and recipe. Staff create, change and delete slots. A change only affects grants issued after it: grants already issued keep their time and owner.
  - `id` integer, required
  - `organization` integer, nullable, required: Who gets the airtime. Unowned slots issue grants to the station.
  - `organizationName` string, nullable, required
  - `frequency` 'daily' | 'weekly' | 'monthly': * `daily` - Daily * `weekly` - Weekly * `monthly` - Monthly
  - `interval` integer
  - `weekdays` integer[]: 0 is Monday. Required for weekly and monthly slots; for daily slots, empty means every day.
  - `monthWeeks` integer[]: Monthly slots: which occurrence of the weekday in the month, 1-5, or -1 for the last.
  - `startTime` string, time, required: Wall-clock time in Europe/Oslo.
  - `duration` string, required
  - `startsOn` string, date, required
  - `endsOn` string, date, nullable
  - `recipe` Recipe, nullable: How the slot's grants program themselves. Leave out on a new owner for everything they upload. Null: the grants are set up by hand. A jukebox recipe makes this the station's airtime, with no organization.
    - `id` integer, required
    - `kind` 'uploads' | 'series' | 'playlist' | 'jukebox', required: * `uploads` - Everything the owner uploads * `series` - One of the owner's series * `playlist` - A list of videos * `jukebox` - The video jukebox
    - `description` string, required
    - `series` integer, nullable
    - `seriesName` string, nullable, required
    - `name` string
    - `categories` integer[]
    - `shortest` string, nullable
    - `longest` string, nullable
    - `newerThanDays` integer, nullable
    - `olderThanDays` integer, nullable
  - `description` string, required

## Other responses

- `400`
- `401`
- `403`
- `404`
- `405`
- `406`
- `415`
- `500`

## Changes

- **2026-11-13** `c4cac446b13d`: 2 breaking, 2 warning, 5 info
  - added `#/components/schemas/RecurringSlotsCreateRecipeNonFieldErrorsErrorComponent, #/components/schemas/RecurringSlotsCreateRecipeKindErrorComponent, #/components/schemas/RecurringSlotsCreateRecipeSeriesErrorComponent, #/components/schemas/RecurringSlotsCreateRecipeNameErrorComponent, #/components/schemas/RecurringSlotsCreateRecipeCategoriesErrorComponent, #/components/schemas/RecurringSlotsCreateRecipeShortestErrorComponent, #/components/schemas/RecurringSlotsCreateRecipeLongestErrorComponent, #/components/schemas/RecurringSlotsCreateRecipeNewerThanDaysErrorComponent, #/components/schemas/RecurringSlotsCreateRecipeOlderThanDaysErrorComponent` to the `oneOf[#/components/schemas/RecurringSlotsCreateValidationError]/errors/items/` response property `oneOf` list for the response status `400`
  - removed the required property `defaultFillRule` from the response with the `201` status
  - removed the request property `defaultFillRuleId`
  - removed the request property `jukebox`
  - …5 more
- …earlier changes not shown

[Operation history](https://skmtc.dev/frikanalen/apis/frikanalen-django-api/changes/api/recurring-slots/post.md)

---

[API](https://skmtc.dev/frikanalen/apis/frikanalen-django-api.md) - [All operations](https://skmtc.dev/frikanalen/apis/frikanalen-django-api/llms.txt) - [OpenAPI document](https://skmtc.dev/frikanalen/apis/frikanalen-django-api/revisions/ebd4175e41fe?raw)
