---
title: "Update a search term"
method: PUT
path: "/marketing/search-terms/{id}"
tags: ["Admin Marketing: Search & SEO"]
---

# Update a search term

`PUT /marketing/search-terms/{id}`

## Request

- Base URL: `http://localhost:8000/api/admin`
- URL: `http://localhost:8000/api/admin/marketing/search-terms/{id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/bagisto/apis/bagisto-admin-api/docs/marketing/search-terms/:id/put.ts> (a function with typed inputs; its response is checked against the schema)

Admin can edit the term text and optional redirect URL. Counts (uses/results) are not editable.

## Path parameters

- `id` integer, required

## Request body

- object
  - `term` string, required
  - `redirect_url` string, nullable

## Response `200`

Search term updated; returns the updated detail.

## Other responses

- `400`: Invalid input
- `404`: Search term not found.
- `422`: Validation failure.

---

[API](https://skmtc.dev/bagisto/apis/bagisto-admin-api.md) - [All operations](https://skmtc.dev/bagisto/apis/bagisto-admin-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bagisto/apis/bagisto-admin-api/revisions/3198f11be70f?raw)
