$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;