Cannot update Owner of Asset with REST2 API


#1

Hello, I am using latest RT version and REST2 API (1.04)
Generally there are no problems with the API, except the one below:
When I want to update (using “PUT” method) the Owner of an asset, I face a failure resulting in this line in the rt.log:
[error]: RT::Asset::AddWatcher Unimplemented in RT::Extension::REST2::Resource::Record::Writable. (/opt/rt4/local/plugins/RT-Extension-REST2/lib/RT/Extension/REST2/Resource/Record/Writable.pm line 167) (/opt/rt4/local/plugins/RT-Extension-REST2/lib/RT/Extension/REST2/Middleware/Log.pm:14)

The code I use in PHP is this:

$owner=array("type" => "user", "id" => "yyyyyyyyyy", "_url" => "https://xxxxxxx/REST/2.0/user/yyyyyyyyyy");
$ch = curl_init();
$curl_post_data = array(
	"Owner" => $owner
);
$query = json_encode($curl_post_data);
$header = array("Content-Type: application/json; charset=UTF-8", "Accept: application/json", "Authorization: token $rt4token");
curl_setopt($ch, CURLOPT_URL, 'https://xxxxxxx/REST/2.0/asset/349285');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT");
curl_setopt($ch, CURLOPT_POSTFIELDS, $query);
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
$curl_response = curl_exec($ch);