Attempting to create folder getting this error: Operation is not allowed due insufficient user rights or account license limitations

Hello

 

I have PHP code attempting to create a folder.

 

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "metadata=[{\"key\":\"testMetaKey\",\"value\":\"testMetaValue\"}]&description=Test description&project={\"ownerIds\":[\"KUAAWJVP\",\"KUAAWLGL\",\"KUACODJY\",\"KUAD5QTG\",\"KUAC5YJG\"],\"status\":\"Red\",\"startDate\":\"2019-11-08\",\"endDate\":\"2022-11-15\"}&title=Test folder&shareds=[\"KUAAWJVP\",\"KUAAWLGL\",\"KUACODJY\",\"KUAD5QTG\",\"KUAC5YJG\"]");

$headers = array();
$headers[] = 'Authorization: bearer blah-blah-blah';
$headers[] = 'Content-Type: application/x-www-form-urlencoded';
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$result = curl_exec($ch);
if (curl_errno($ch)) {
return'Error:'.curl_error($ch);
}
curl_close($ch);
 
And I get this error
 
{"errorDescription":"Operation is not allowed due insufficient user rights or account license limitations","error":"not_allowed"}
 
Not sure what to do next? I can successfully read
 
0
1 commento
Spot On Innovative Approach Stellar Advice
Avatar
Hugh

Hey Darryl!

Just raised a Support ticket for you, someone should be in contact with you soon 😊

0
Azioni per commenti Permalink

Folllowing List for Post: Attempting to create folder getting this error: Operation is not allowed due insufficient user rights or account license limitations
[this list is visible for admins and agents only]

Didn’t find what you were looking for? Write new post