Scope requirements
Scope requirements
Retrieve redirects
You can retrieve URL redirects either individually by ID or by retrieving all redirects:- To retrieve all redirects, make a
GETrequest to/cms/v3/url-redirects. - To retrieve an individual redirect, make a
GETrequest to/cms/v3/url-redirects/{urlRedirectId}.
Retrieve all redirects
When retrieving all redirects, you can filter and sort the returned results using query parameters. For example, the following request would retrieve the first 10 redirects created after January 1, 2024:
The response includes a
total count and an array of redirect objects:
Retrieve a single redirect
To retrieve details for a specific redirect, make aGET request to /cms/v3/url-redirects/{urlRedirectId}.
For example, the request below would retrieve the details for the redirect with ID 3212223134:
Create a redirect
To create a new URL redirect, make aPOST request to /cms/v3/url-redirects.
For example, the request below would create a permanent redirect from /old-page to /new-page:
Update a redirect
To update an existing URL redirect, make aPATCH request to /cms/v3/url-redirects/{urlRedirectId}.
For example, the request below would update the redirect with ID 3212223134 to change the destination URL:
Delete a redirect
To delete an existing URL redirect, make aDELETE request to /cms/v3/url-redirects/{urlRedirectId}.
For example, the request below would delete the redirect with ID 3212223134:
204 No Content response with no body.