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

# PATCH /api/live-sources/{id}

`PATCH /api/live-sources/{id}`

## Request

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

Rename a source, switch it off, change where it is pulled from, or
delete it.

A disabled source refuses every encoder and reader, and can't be given
to a video. Setting a pull address revokes the source's encoder keys.
Neither switching off nor changing how the signal comes in is allowed
while a live airing of the source is coming. Only a source no programme
has ever used can be deleted (see `canDelete`); its keys go with it.

## Path parameters

- `id` integer, required

## Request body

- PatchedLiveSourceRequest
  - `name` string
  - `enabled` boolean
  - `logoPosition` 'top-right' | 'stortinget-clock': * `top-right` - Øverst til høyre * `stortinget-clock` - Rundt Stortingets klokke
  - `pullUrl` string: An address Frikanalen pulls this source from (srt://, rtmp(s)://, rtsp(s)://, or https:// for HLS), instead of an encoder pushing to it. Empty makes it a pushed source again. Never returned; see pull_target.

## Response `200`

- LiveSource
  - `id` integer, required
  - `name` string, required
  - `enabled` boolean
  - `logoPosition` 'top-right' | 'stortinget-clock': * `top-right` - Øverst til høyre * `stortinget-clock` - Rundt Stortingets klokke
  - `isPulled` boolean, required
  - `pullTarget` string, required: Scheme, host and port of the pull address.
  - `encoderCount` integer, required: Encoders that hold a key to this source. A pushed source with none cannot receive a signal.
  - `canDelete` boolean, required: A source no programme has ever used can be deleted; one that has stays, and can be switched off.
  - `streamId` string, uuid, required
  - `contributionPath` string, required
  - `previewPath` string, required
  - `upcomingTransmissions` UpcomingTransmission[], required
    - `id` integer, required
    - `name` string, required
    - `starttime` string, date-time, required
    - `endtime` string, date-time, required

## Other responses

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

## Changes

- **2026-11-19** `270524f03f87`: 1 breaking, 3 info
  - added `#/components/schemas/LiveSourcesPartialUpdateLogoPositionErrorComponent` to the `oneOf[#/components/schemas/LiveSourcesPartialUpdateValidationError]/errors/items/` response property `oneOf` list for the response status `400`
  - added the new optional request property `logoPosition`
  - added the optional property `logoPosition` to the response with the `200` status
  - added `logo_position` discriminator mapping keys to the `oneOf[#/components/schemas/LiveSourcesPartialUpdateValidationError]/errors/items/` response property for the response status `400`
- **2026-11-13** `aa0809308971`: 2 info
  - added the required property `canDelete` to the response with the `200` status
  - added the required property `encoderCount` to the response with the `200` status
- **2026-11-12** `6f69c16e2051`: 1 breaking, 1 info
  - added `#/components/schemas/LiveSourcesPartialUpdatePullUrlErrorComponent` to the `oneOf[#/components/schemas/LiveSourcesPartialUpdateValidationError]/errors/items/` response property `oneOf` list for the response status `400`
  - added `pull_url` discriminator mapping keys to the `oneOf[#/components/schemas/LiveSourcesPartialUpdateValidationError]/errors/items/` response property for the response status `400`
- …earlier changes not shown

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