Skip to main content
POST
Create site redirect rule

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Scopes

site:manage-redirects

Allow members to configure URL redirects

Path Parameters

organization
string
required

The organization slug

server
integer
required

The server ID

site
integer
required

The site ID

Body

application/json
from
string
required

The source URL path for the redirect rule.

Maximum string length: 1000
Example:

"/old-path"

to
string
required

The destination URL path for the redirect rule.

Maximum string length: 1000
Example:

"/new-path"

type
enum<string>
required

The type of the redirect rule.

Available options:
redirect,
permanent
Example:

"permanent"

Response

Accepted