Update product Name using Prestashop webservice

I was trying to update product name using web service provided PrestaShop, but each update request returns HTTP 400 (bad request).

Is it even possible to update product name using PrestaShop web service?

PHP Script:

$opt = [
    'resource' => 'products',
    'id' => '2323',
];
$xml = $webservice->get($opt);
$resource = $xml->children()->children();
$resource->name->language[0][0] = 'NEWNAME';
var_dump($xml->asXML());
$opt['putXml'] = $xml->asXML();
$xml = $webservice->edit($opt);