---
title: "Create a new route redirect"
method: POST
path: "/knowledge-bases/{id}/route-redirects"
tags: ["route-redirects"]
---

# Create a new route redirect

`POST /knowledge-bases/{id}/route-redirects`

Creates a path redirect within a knowledge base, mapping a source path to an article or collection.

**Rate limit:** 30 requests per minute

## Path parameters

- `id` string, required

## Request body

- CreateRouteRedirectRequestBody
  - `from_path` string, required — The path to redirect from.
  - `language` string — Language of the object to redirect to. If not specified, the default language of the knowledge base will be used.
  - `object_id` string, required — The ID of the object to redirect to.
  - `object_type` string, required — The type of the object to redirect to. Must be "article" or "collection".

## Response `200`

- CreateRouteRedirectResponseBody
  - `data` RouteRedirect
    - `created_at` string — The time at which the route redirect was created.
    - `from_path` string — The path to redirect from.
    - `id` string — The ID of the route redirect.
    - `language` string — The language of the object to redirect to.
    - `object_id` string — The ID of the object to redirect to.
    - `object_type` string — The type of the object to redirect to.
  - `request_id` string — The request ID for tracking.

## Other responses

- `400` — The request was invalid or could not be completed.
- `403` — The authenticated caller or organization is not allowed to access this endpoint or operation.
- `404`
- `500` — An unexpected internal error occurred.

---

[API](https://skmtc.dev/usepylon/apis/pylon-api.md) · [All operations](https://skmtc.dev/usepylon/apis/pylon-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/usepylon/pylon-api/revisions/7b12ab92de27/schema)
