Commerce

Create a URL redirect

Creates a redirect from path (starting with /) to target (a path or a full URL) and returns it with status 201. Shopify only. Needs navigation.write.

post/v1/commerce/redirects

Request body

accountIdstring required
pathstring required

The old path, starting with /.

targetstring required

Where to send visitors: a path or a full URL.

Response

Redirect created

Changes

Changed in 2 of the 60 revisions of this API.2