---
title: "PATCH /api/scheduleitems/{id}"
method: PATCH
path: "/api/scheduleitems/{id}"
tags: ["scheduleitems"]
---

# PATCH /api/scheduleitems/{id}

`PATCH /api/scheduleitems/{id}`

## Request

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

The compiled broadcast schedule. Read by everyone; written only by
staff, as corrections. Organizations program through /api/grants.

list:
Query parameters
----------------
`date`: YYYY-MM-DD or 'today' (Europe/Oslo). Defaults to today.

`days`: Number of days. Defaults to 1.

`surrounding`: Include event before and after the window.

`include_fillers`: Include members' text posters and staff graphics (for playout).

`ordering`: Field to order by. Prefix '-' for desc. Defaults to 'starttime'.

## Path parameters

- `id` integer, required

## Request body

- PatchedScheduleitemModifyRequest: Staff corrections to the compiled schedule. Organizations program airtime through grants; only the compiler and staff write schedule items. A staff entry carries no grant and no schedule reason, which holds it to the database's no-overlap constraint -- its violation is reported here as a 400.
  - `video` integer, nullable
  - `starttime` string, date-time
  - `duration` string

## Response `200`

- ScheduleitemModify: Staff corrections to the compiled schedule. Organizations program airtime through grants; only the compiler and staff write schedule items. A staff entry carries no grant and no schedule reason, which holds it to the database's no-overlap constraint -- its violation is reported here as a 400.
  - `id` integer, required
  - `video` integer, nullable
  - `starttime` string, date-time, required
  - `endtime` string, date-time, required
  - `duration` string, required

## Other responses

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

## Changes

- **2026-11-11** `38d4645b1621`: 2 warning, 2 info
  - removed the request property `schedulereason`
  - removed the optional property `schedulereason` from the response with the `200` status
  - removed `schedulereason` discriminator mapping keys from the `oneOf[#/components/schemas/ScheduleitemsPartialUpdateValidationError]/errors/items/` response property for the response status `400`
  - removed `#/components/schemas/ScheduleitemsPartialUpdateSchedulereasonErrorComponent` from the `oneOf[#/components/schemas/ScheduleitemsPartialUpdateValidationError]/errors/items/` response property `oneOf` list for the response status `400`
- **2026-08-21** `e220966e8fa5`: 2 info
  - removed the `max_value` enum value from the `oneOf[#/components/schemas/ScheduleitemsPartialUpdateValidationError]/errors/items/oneOf[#/components/schemas/ScheduleitemsPartialUpdateSchedulereasonErrorComponent]/code` response property for the response status `400`
  - removed the `min_value` enum value from the `oneOf[#/components/schemas/ScheduleitemsPartialUpdateValidationError]/errors/items/oneOf[#/components/schemas/ScheduleitemsPartialUpdateSchedulereasonErrorComponent]/code` response property for the response status `400`
- **2026-08-19** `2bacf53705f7`: 1 breaking, 1 info
  - api path removed without deprecation
  - endpoint added
- …earlier changes not shown

[Operation history](https://skmtc.dev/frikanalen/apis/frikanalen-django-api/changes/api/scheduleitems/:id/patch.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)
