API: Move Folder not working

27370

Hi,

according to 
https://collaborate.highq.com/sitepoint/wikiHome.action?metaData.siteID=714&metaData.wikiID=7557

the call goes as follows:
 

PUT  /folders/{folderid}/parent?targetfolder=<targetfolderid>

Interestingly "move" and "copy" are the only API-Calls that miss the "api/1" in their path. And they have angle brackets, that's different to all other calls too.

The URL above misses an example.

So I tried in PHP 7:
 

$ch = curl_init();curl_setopt($ch, CURLOPT_URL,"">mycompany.highq.com/.../parent, CURLOPT_PROXY, "456");curl_setopt($ch, CURLOPT_HTTPHEADER, array(    'Auth-Type:OAUTH2',    'Authorization:Bearer '.HIGHQ_ACCESSTOKEN));curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT");curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);$answer = curl_exec($ch);curl_close ($ch);

As you can see, I dropped the angle brackets. The answer I get:

Unsupported Request

PUT to mycompany.highq.com/.../parent not supported.

Reference #8.24b51002.1572269111.bea7bcd

All my other attempts with "api/6" or similar ended in "Bad Request - Your browser sent a request that this server could not understand." The angular brackets did't work either.

Please help.

 

 

Parents
  • Helmut Rinda can you please confirm that you are not trying to move documents between sites as that feature is not available in Collaborate UI hence not supported in the API, if you move files within a site then it should work.

Reply
  • Helmut Rinda can you please confirm that you are not trying to move documents between sites as that feature is not available in Collaborate UI hence not supported in the API, if you move files within a site then it should work.

Children
No Data