Site redirects
Establish redirects for pages that have moved or changed in your docs site.
Attributes
objectstring · enumRequiredPossible values:
idstringRequired
The unique identifier for the redirect.
sourcestring · max: 512RequiredPattern:
The source path to redirect from.
^\/(?!\*)(?!.*\*.+)(?:[A-Za-z0-9\-._~+]|%[0-9A-Fa-f]{2})+(?:\/(?:[A-Za-z0-9\-._~+]|%[0-9A-Fa-f]{2})+)*(?:\/\*|\*)?$draftbooleanRequired
Whether the redirect is draft and not live.
captureWildcardbooleanRequired
Capture and append the wildcard-matched suffix to the destination URL.
destinationone ofRequired
or
or
or
createdAtstring · date-timeRequired
When the redirect was created.
updatedAtstring · date-timeOptional
When the redirect was last updated. Absent if never updated since creation.
The SiteRedirect object
{
"object": "site-redirect",
"id": "text",
"source": "text",
"draft": true,
"captureWildcard": true,
"destination": {
"kind": "site-section",
"siteSectionId": "text"
},
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z"
}Last updated
Was this helpful?