---
title: "Update redirect by id"
method: PUT
path: "/api/v11/redirect/{id}"
tags: ["Redirect"]
---

# Update redirect by id

`PUT /api/v11/redirect/{id}`

## Request

- Base URL: `https://indexing-dev.hawksearch.net`
- URL: `https://indexing-dev.hawksearch.net/api/v11/redirect/{id}`
- Auth: none declared. Required headers: `X-HawkSearch-ApiKey`
- TypeScript: <https://skmtc.dev/hawksearch/apis/hawksearch-elasticsearch-indexingapi/docs/api/v11/redirect/:id/put.ts> (a function with typed inputs; its response is checked against the schema)

Updates a redirect

## Path parameters

- `id` integer, required

## Headers

- `X-HawkSearch-ApiKey` string, required

## Request body

- RedirectModel
  - `RedirectId` integer
  - `Name` string, required
  - `RuleXml` string, required
  - `RedirectUrl` string, required
  - `SortOrder` integer
  - `StartDate` string, date-time
  - `EndDate` string, date-time
  - `Comments` string
  - `Tags` string
  - `SyncGuid` string, uuid
  - `Target` string
  - `RedirectType` string
  - `CreateDate` string, date-time
  - `ModifyDate` string, date-time

## Response `200`

OK

- integer

---

[API](https://skmtc.dev/hawksearch/apis/hawksearch-elasticsearch-indexingapi.md) - [All operations](https://skmtc.dev/hawksearch/apis/hawksearch-elasticsearch-indexingapi/llms.txt) - [OpenAPI document](https://skmtc.dev/hawksearch/apis/hawksearch-elasticsearch-indexingapi/revisions/24cba7bf3468?raw)
