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

# Update Redirect

`PUT /redirect/{id}`

## Request

- Base URL: `https://sdukstudio.com/api`
- URL: `https://sdukstudio.com/api/redirect/{id}`
- Auth: HTTP bearer

## Request body

- RedirectInput
  - `from_path` string, required
  - `to_path` string, required
  - `kind` 'slug-change' | 'vanity', required
  - `note` string
  - `active` boolean, required

## Response `200`

The updated Redirect

- Redirect
  - `redirect_id` integer
  - `from_path` string
  - `to_path` string
  - `kind` 'slug-change' | 'vanity'
  - `note` string
  - `active` boolean
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `400`: Validation error
- `404`: Not found

---

[API](https://skmtc.dev/sdukstudio/apis/sduk-studio-info-site-api.md) · [All operations](https://skmtc.dev/sdukstudio/apis/sduk-studio-info-site-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sdukstudio/apis/sduk-studio-info-site-api/revisions/d7877b33dad3?raw)
