-
Notifications
You must be signed in to change notification settings - Fork 40
Open
Description
`$get_template = $shopify("GET /admin/api/".$apiversion."/themes/$theme_ids/assets.json?asset[key]=snippets/card-product.liquid&theme_id=$theme_ids");
$value_data = trim($get_template['value']);
$findstring = "
Test
";$updatedval = $value_data. $findstring;
$updatetemplate = array(
'asset' => array(
"key" => "snippets/card-product.liquid",
"value" => "$updatedval"
)
);
try{
$templateupdate = $shopify("PUT /admin/api/".$apiversion."/themes/$theme_ids/assets.json", $updatetemplate);
}
catch (shopify\ApiException $e) {
error_log($e);
}
`
On put request , phpish\shopify\ApiException: [414] error.
Is there any way to fix this ? I have tried to add Content-Length on the request header too. But the issue not resolved.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels