---
title: "Approve a banner"
method: POST
path: "/banner/{id}/approve"
tags: ["banners"]
---

# Approve a banner

`POST /banner/{id}/approve`

Approve and activate a banner. Only admins can approve. Once approved, the banner will be active.

## Path parameters

- `id` number, required

## Response `200`

Banner approved successfully

- BannerResponseDto
  - `id` number, required — Banner ID
  - `bannerImageUrl` string, required — Banner image URL
  - `bannerUrl` string — Landing page URL
  - `status` 'ACTIVE' | 'DEACTIVE' | 'PENDING_APPROVE', required — Banner status
  - `order_id` string, required — Display order
  - `start_date` string, date-time — Start date
  - `end_date` string, date-time — End date
  - `languageType` 'BM' | 'EN', required — Language type

## Other responses

- `400` — Bad request - Banner is already active or cannot be approved
- `401` — Unauthorized - Invalid or missing JWT token
- `403` — Forbidden - Admin role is required
- `404` — Banner not found

---

[API](https://skmtc.dev/tonewow/apis/tonewow-database-api.md) · [All operations](https://skmtc.dev/tonewow/apis/tonewow-database-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tonewow/tonewow-database-api/revisions/f36472974ad4/schema)
