App reviews, troubleshooting, and recommendations
const response = await admin.rest.post({
path: "admin/api/2024-07/redirects.json",
body: JSON.stringify({
redirect: {
path: alias ? `/${alias}` : "/default-alias",
target: targetUrl || "https://black-hat1.myshopify.com/products/acrylic-charms-manufacturer"
}
}),
headers: {
'Content-Type': 'application/json'
}
});
const responseJSON = await response.json();
return json({ response: responseJSON });
Interestingly, the same API call works perfectly fine when tested in Postman. However, I receive the "Required parameter missing or invalid" error when making the request through the Remix application.
If anyone has insights or suggestions on resolving this issue, your assistance would be greatly appreciated.
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024