---
title: "Create Redirect"
method: POST
path: "/redirect"
tags: ["Redirect"]
---

# Create Redirect

`POST /redirect`

## Request

- Base URL: `https://sdukstudio.com/api`
- URL: `https://sdukstudio.com/api/redirect`
- 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 `201`

The created 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

---

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