Move folder
OVERVIEW
The method allows a given folder to be moved from one folder location to another folder location within a site.
Request
PUT /folders/{folderid}/parent?targetfolder=<targetfolderid>
Parameters
Parameter Name | Value | Description |
---|---|---|
folderid (required) | Int | The ID for the folder in question |
targetfolderid(required) | Int | The target folder id of the folder under which the folder is to be moved |
sourceclient (optional) | String | The source client for changes API |
Request body
No request body is required for this call.
Response
API endpoint returns a 200 OK in case of a successful operation.
The information provided here was not enough for me, so I post the additional information:
- The "api/NUMBER" is missing in the path
- Ignore the angle brackets "
" - Add "Content-Length:0" to your header
So a code example in PHP with folderid "889313" and targetfolderid "137363" looks like this:
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"https://mycompany.highq.com/mycompany/api/6/folders/889313/parent?targetfolder=137363");
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Content-Length:0',
'Authorization:Bearer '.HIGHQ_ACCESSTOKEN
));
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$answer = curl_exec($ch);
curl_close ($ch);
PS: The Content-Length header ist mentioned here:
https://developerportal.thomsonreuters.com/getting-started
But I did'nt get the error type mentioned there.I got "Bad Request - Your browser sent a request that this server could not understand."
Comments
1 Comments