Assest API Giving 404 Error on update theme content

$curl = curl_init();

curl_setopt_array($curl, array(
CURLOPT_URL => ‘https://findreplaceapp.myshopify.com/admin/api/2024-10/themes/130982281318/assets.json’,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => ‘’,
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => ‘PUT’,
CURLOPT_POSTFIELDS =>‘{“asset”:{“key”:“templates/blog.json”,“value”:“

We are busy updating the store for you and will be back within the hour.

”}}’,
CURLOPT_HTTPHEADER => array(
‘X-Shopify-Access-Token: shpua_85214b0dccc4ae98442b63b4e2b38018’,
‘Content-Type: application/json’,
),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

had the same issue. You can’t use the Assets API anymore without an exemption. You need to apply for an exemption here:
Google Form

Thank you, I have filled out the google form, how much would it take to process the request.?

You’re welcome they say 15 days but for me it only took 2 or 3 days

1 Like