Update Api for product price pass value id with price in public app shopify

app.post(“/update-price”, async (req, res) => {
const shopifyDomain = ‘’;
const accessToken = ‘’;
const productGID = ‘’; // Replace with your product GID
const variantGID = ‘’; // Replace with your variant GID
const newPrice = ‘’; // New price to set

const query = mutation { productUpdate(input: { id: "${productGID}", variants: [ { id: "${variantGID}", price: "${newPrice}" } ] }) { product { id title variants(first: 10) { edges { node { id price } } } } userErrors { field message } } };

try {
const response = await axios.post(
https://${shopifyDomain}/admin/api/2024-01/graphql.json,
{ query },
{
headers: {
‘Content-Type’: ‘application/json’,
‘X-Shopify-Access-Token’: accessToken,
},
}
);

if (response.data.errors) {
console.error(‘GraphQL Errors:’, response.data.errors);
} else if (response.data.data.productUpdate.userErrors.length > 0) {
console.error(‘User Errors:’, response.data.data.productUpdate.userErrors);
} else {
console.log(‘Product price updated:’, response.data.data.productUpdate.product);
}
} catch (error) {
console.error(‘Error updating product price:’, error.response ? error.response.data : error.message);
}
})

we have use graphql query and mutation also check they work proper in react with also for static store but we use this api in liquid file they show 404 error why same static store or product for this hwo please provide me a best solution