Admin: Banners

Update a banner. A missing id surfaces as 404 via the central handler.

put/api/admin/banners/{id}

Request

  • The document declares no server URL.
  • Auth: API key in cookie JWT and API key in header X-XSRF-TOKEN

Path parameters

idinteger required

Request body

state'draft' | 'published' | 'archived' required

Banner publication state.

background'cta_gradient' | 'dark' | 'blue' required

Banner display background.

locale'ru' | 'en' required

Banners only target ru/en today (legacy BannerLocale).

bodystring required
urlstring nullable required
startsAtstring date-time nullable required
finishesAtstring date-time nullable required

Response

The request has succeeded.

idinteger required
locale'ru' | 'en' required

Banners only target ru/en today (legacy BannerLocale).

bodystring required
urlstring nullable required
background'cta_gradient' | 'dark' | 'blue' required

Banner display background.

state'draft' | 'published' | 'archived' required

Banner publication state.

startsAtstring date-time nullable required
finishesAtstring date-time nullable required
createdAtstring date-time required

Changes