Site redirects
Establish redirects for pages that have moved or changed in your docs site.
Keep your site’s content fresh without breaking old links. This API allows you to create and manage redirection rules.
Authorizations
Path parameters
organizationIdstringrequired
The unique id of the organization
siteIdstringrequired
The unique id of the site
Query parameters
pagestringoptional
Identifier of the page results to fetch.
limitnumber · max: 1000optional
The number of results per page
Responses
application/json
cURL
JavaScript
Python
HTTP
200
Authorizations
Path parameters
organizationIdstringrequired
The unique id of the organization
siteIdstringrequired
The unique id of the site
Body
sourcestring · max: 512requiredPattern:
The source path to redirect from.
^/[a-zA-Z0-9-_.\/]+[a-zA-Z0-9-_.]$
destinationone ofrequired
Responses
application/json
cURL
JavaScript
Python
HTTP
201
Authorizations
Path parameters
organizationIdstringrequired
The unique id of the organization
siteIdstringrequired
The unique id of the site
siteRedirectIdstringrequired
The unique id of the site redirect
Body
sourcestring · max: 512optionalPattern:
The source path to redirect from.
^/[a-zA-Z0-9-_.\/]+[a-zA-Z0-9-_.]$
destinationone ofoptional
Responses
application/json
cURL
JavaScript
Python
HTTP
200
Authorizations
Path parameters
organizationIdstringrequired
The unique id of the organization
siteIdstringrequired
The unique id of the site
Query parameters
shareKeystringoptional
For sites published via share-links, the share key is useful to resolve published URLs.
sourcestring · max: 512requiredPattern:
The source path to redirect from.
^/[a-zA-Z0-9-_.\/]+[a-zA-Z0-9-_.]$
Responses
application/json
application/json
cURL
JavaScript
Python
HTTP
200
404
Was this helpful?