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

# PATCH /api/grants/{id}

`PATCH /api/grants/{id}`

## Request

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

Airtime grants: a window of airtime given to one organization, and the
list of what plays in it.

Members see their organizations' grants and replace a grant's list
while it is open (or until air, if it is exempt from locking). Staff
see every grant, create grants, and cancel or exempt them.

## Path parameters

- `id` integer, required

## Request body

- PatchedAirtimeGrantUpdateRequest: Staff cancels a grant, moves its deadline or end, or exempts it from locking.
  - `state` 'cancelled': Only 'cancelled': withdraw the grant and free its window. * `cancelled` - cancelled
  - `locksAt` string, date-time
  - `lockExempt` boolean
  - `starttime` string, date-time: Move the start, until the grant is on air. A start that has passed means now. Entries that no longer fit come off the list; an earlier start needs the extra time to be free.
  - `endtime` string, date-time: Move the end, even while the grant is on air: what is on air past it is cut short there. Entries that no longer fit come off the list. A later end needs the extra time to be free.

## Response `200`

- AirtimeGrantUpdate: Staff cancels a grant, moves its deadline or end, or exempts it from locking.
  - `state` 'cancelled': Only 'cancelled': withdraw the grant and free its window. * `cancelled` - cancelled
  - `locksAt` string, date-time
  - `lockExempt` boolean
  - `starttime` string, date-time: Move the start, until the grant is on air. A start that has passed means now. Entries that no longer fit come off the list; an earlier start needs the extra time to be free.
  - `endtime` string, date-time: Move the end, even while the grant is on air: what is on air past it is cut short there. Entries that no longer fit come off the list. A later end needs the extra time to be free.

## Other responses

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

## Changes

- **2026-11-16** `deeacd00bbb6`: 1 breaking, 3 info
  - added `#/components/schemas/GrantsPartialUpdateStarttimeErrorComponent, #/components/schemas/GrantsPartialUpdateEndtimeErrorComponent` to the `oneOf[#/components/schemas/GrantsPartialUpdateValidationError]/errors/items/` response property `oneOf` list for the response status `400`
  - added the optional property `endtime` to the response with the `200` status
  - added the optional property `starttime` to the response with the `200` status
  - added `starttime, endtime` discriminator mapping keys to the `oneOf[#/components/schemas/GrantsPartialUpdateValidationError]/errors/items/` response property for the response status `400`
- **2026-11-16** `20e3275cd222`: 1 info
  - added the new optional request property `starttime`
- **2026-11-16** `f1620d3cfe01`: 1 info
  - added the new optional request property `endtime`
- **2026-11-11** `38d4645b1621`: 1 info
  - endpoint added

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