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
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos
3 comments
Avatar
Hugh

Hey Darryl!

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

0
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos

Hello! I have the same problem. How can I fix it?

0
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos

Hi UMARTA, welcome to the forums 👋 I've asked our API experts from the Support team to reach out to you about this.

Please let me know if there's anything else I can help you with 🙂

Lisa Community Team at Wrike Wrike Product Manager Become a Wrike expert with Wrike Discover

Lisa Wrike Team member Become a Wrike expert with Wrike Discover

0
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos

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]

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