Update redirect
PUT
/ admin/ v1/ stores/ {store_id}/ redirects/ {redirect_id}- content:write
Replace a redirect's path and target.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.redirect_idstringrequiredThe redirect's ID, like
redir_01k8qs5s….
Headers
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
pathstringrequiredThe old path; a full URL of another site counts by its path and query.
targetstringrequiredA path on the store or an http(s) URL.
Returns
200 Saved.
Errors
- 404
not_foundNo such redirect. - 409Another redirect starts from this path.
- 422
validation_failedValidation failed, a loop or a chain.