news

PATCH /api/news/bulletins/{id}

Changed on

Messages from the channel, shown between programmes by the on-air graphics and in the infographics rotation. Anyone can read the published ones; staff see every one and edit them. Highest priority first, then newest.

Request

  • The document declares no server URL.
  • Auth
    • API key in header Authorization
    • or API key in cookie sessionid

Path parameters

idinteger required

A unique integer value identifying this bulletin.

Request body

headingstring
textstring
template'standard' | 'notice'
  • standard - Vanlig
  • notice - Viktig melding
isPublishedboolean
startsAtstring date-time nullable

Shown from this time. Empty: as soon as it is published.

endsAtstring date-time nullable

Shown until this time. Empty: until it is unpublished.

priorityinteger

Higher is shown first, and more often when there is little time.

onAirboolean

Shown by the on-air graphics between programmes.

onInfographicsboolean

Shown in the infographics rotation.

Response

idinteger required
headingstring required
textstring required
template'standard' | 'notice'
  • standard - Vanlig
  • notice - Viktig melding
pagesstring[] required

The text as the screen pages it: a blank line starts a page, and a long block is paged by itself. The heading is on every page.

pageSecondsnumber[] required

How long each page takes to read.

readingSecondsinteger required

The time it takes to read every page once.

createdTimestring date-time required
updatedTimestring date-time required
isPublishedboolean
isCurrentboolean required

Published, and inside the dates it runs between.

startsAtstring date-time nullable

Shown from this time. Empty: as soon as it is published.

endsAtstring date-time nullable

Shown until this time. Empty: until it is unpublished.

priorityinteger

Higher is shown first, and more often when there is little time.

onAirboolean

Shown by the on-air graphics between programmes.

onInfographicsboolean

Shown in the infographics rotation.

Changes

    • breaking

      added to the oneOf[#/components/schemas/NewsBulletinsPartialUpdateValidationError]/errors/items response property oneOf list for the response status

    • warning

      the text request property's maxLength was set to 1692

    • warning

      added the new max_length enum value to the oneOf[#/components/schemas/NewsBulletinsPartialUpdateValidationError]/errors/items/oneOf[#/components/schemas/NewsBulletinsPartialUpdateTextErrorComponent]/code response property for the response status

    18 more changes in this revision