v1

latestOpenAPI 3.1.0raw.githubusercontent.com2026-06-19273210655.1 KB
Redirect Rules

Create site redirect rule

Add a new redirect rule to the site.

Processing mode: <small><code>async</code></small>

post/orgs/{organization}/servers/{server}/sites/{site}/redirect-rules

Path parameters

organizationstring required

The organization slug

serverinteger required

The server ID

siteinteger required

The site ID

Request body

fromstring required

The source URL path for the redirect rule.

tostring required

The destination URL path for the redirect rule.

type'redirect' | 'permanent' required

Example request

{
  "from": "/old-path",
  "to": "/new-path"
}

Response

Accepted