---
title: "Updates a search banner"
method: PUT
path: "/searchbanner"
tags: ["SearchBanners"]
---

# Updates a search banner

`PUT /searchbanner`

## Request

- The document declares no server URL.
- Auth: API key in header `TWN-InstanceKey` and API key in header `TWN-Authentication`

## Request body

- ApiSearchBanner
  - `SearchBannerId` integer
  - `Name` string
  - `ActiveFrom` string, date-time
  - `ActiveUntil` string, date-time
  - `TriggerType` 'AllKeywords' | 'SpecificKeywords'
  - `Location` 'ProductsTop' | 'ListTop' | 'ContainerTop'
  - `CategoryId` integer, nullable
  - `Tags` string[]
  - `Items` ApiSearchBannerItem[]
    - `ImageUrl` string
    - `ClickUrl` string, nullable
    - `ClickType` '_self' | '_blank'
    - `State` 'Desktop' | 'Mobile'

## Response `200`

OK

## Other responses

- `400`: Bad Request

---

[API](https://skmtc.dev/tweakwise/apis/app-api.md) - [All operations](https://skmtc.dev/tweakwise/apis/app-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tweakwise/apis/app-api/revisions/dc936bf76941?raw)
