Does setting a product handle with the PRODUCT API also create a URL redirect?

Solved
Highlighted
Excursionist
30 3 4

By default if one updates a product handle from the Admin, a URL redirect is created.

Does this happen with a PUT to the REST Product API?

0 Likes

Success.

Shopify Expert
9801 91 1557

A URL redirect is not created if you update the product handle via the API. 

This would be something for your app to make a second call on via the redirects API.

 

This is also something very easy for you to test. Did you see conflicting results.

★ Winning Partner of the Build a Business competition. ★ http://freakdesign.com.au
0 Likes
Shopify Staff
Shopify Staff
373 50 57

Hey @Giulio1,

 

Further to Jason's comment, if you were interested in exploring the GraphQL Admin API, there's a redirectNewHandle property.

 

Whether a redirect is required after a new handle has been provided. If true, then the old handle is redirected to the new one automatically.

1 Like