---
title: "Updates a redirect"
method: PUT
path: "/redirect"
tags: ["Redirect"]
---

# Updates a redirect

`PUT /redirect`

## Request

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

## Request body

- RedirectApiUpdateModel: Model to update a redirect
  - `Id` integer: Id of the redirect to update
  - `Type` 'Keyword' | 'Attribute'
  - `AttributeId` integer, nullable: Attribute linked to the redirect
  - `CategoryId` integer, nullable: Category linked to the redirect
  - `Url` string, nullable: The redirect URL
  - `Exclusions` string, nullable: Exclusions for the redirect
  - `UseConjugations` boolean: Indicates whether conjugations are used
  - `UseCustomConjugations` boolean: Indicates whether custom conjugations are used
  - `Terms` string[], nullable: Terms that trigger this redirect. Used for type keyword redirect
  - `Conjugations` string[], nullable: Conjugation display terms. Used for type keyword redirect
  - `Replacements` RedirectReplacementApiModel[], nullable: Attribute value replacements. Used for type attribute redirect
    - `Sequence` integer: Sequence order of the replacement
    - `OriginalValue` string, nullable: Original value to replace
    - `ReplacementValue` string, nullable: Value to replace the original with

## Response `200`

OK

- integer

## 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)
