---
title: "Create or update redirect"
method: POST
path: "/kb-redirects"
tags: ["Redirects"]
---

# Create or update redirect

`POST /kb-redirects`

## Request

- Base URL: `https://api.weav.com/v1`
- URL: `https://api.weav.com/v1/kb-redirects`
- Auth: HTTP bearer

## Request body

- object
  - `path` string, required
  - `article_id` string, uuid, required
  - `locale` string, nullable

## Response `200`

Updated

- KbRedirect
  - `id` string, uuid
  - `path` string
  - `article_id` string, uuid
  - `locale` string
  - `created_at` string, date-time, nullable

## Other responses

- `201`: Created
- `422`: Invalid path or target

---

[API](https://skmtc.dev/weav/apis/weav-api.md) · [All operations](https://skmtc.dev/weav/apis/weav-api/llms.txt) · [OpenAPI document](https://skmtc.dev/weav/apis/weav-api/revisions/15970f126c0e?raw)
