---
title: "Update a banner"
method: PUT
path: "/admin/banners/{id}"
tags: ["Admin Banners"]
---

# Update a banner

`PUT /admin/banners/{id}`

## Path parameters

- `id` string, required

## Request body

- UpdateBannerDto
  - `slug` string
  - `targetRoute` string
  - `altText` string, nullable
  - `isExplicit` boolean
  - `status` 'DRAFT' | 'PUBLISHED' | 'ARCHIVED'

## Response `200`

- BannerAdminDto
  - `id` string, required
  - `slug` string, required
  - `status` 'DRAFT' | 'PUBLISHED' | 'ARCHIVED', required
  - `order` number, required
  - `isExplicit` boolean, required
  - `targetRoute` string, required
  - `altText` string, nullable
  - `publishedAt` string, nullable
  - `createdAt` string, required
  - `updatedAt` string, required
  - `images` BannerAdminImagesDto, required
    - `desktop` BannerAdminImageDto
      - `key` string, required — Full S3 key in the static bucket.
      - `url` string, required — Full CDN URL.
    - `tablet` BannerAdminImageDto
      - `key` string, required — Full S3 key in the static bucket.
      - `url` string, required — Full CDN URL.
    - `mobile` BannerAdminImageDto
      - `key` string, required — Full S3 key in the static bucket.
      - `url` string, required — Full CDN URL.

---

[API](https://skmtc.dev/miaai/apis/backend-template-api.md) · [All operations](https://skmtc.dev/miaai/apis/backend-template-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/miaai/backend-template-api/revisions/2a8d88a5124f/schema)
