function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Alexander BondarchukAlexander Bondarchuk 

salesforce entity type cannot be inserted: Library when calling create for ContentWorkspace

Error: "salesforce entity type cannot be inserted: Library" when trying to create ContentWorkspace object passing just Name as parameter thru API. Please help
Thank you.
VinayVinay (Salesforce Developers) 
Hi Alexander,

Looks like API user doesn't have permission to update.

Can you check below articles to confirm we have permission on the library.

Vinay Kumar
Nalini ch 6Nalini ch 6

It looks like our team of experts can help you resolve this ticket. We have Salesforce global help-desk support and you can log a case and our Customer Success Agents will help you solve this issue. You can also speak to them on live chat. Click on the below link to contact our help-desk. Trust me it is a support service that we are offering for free!

Jarvis SFDC team
Alexander BondarchukAlexander Bondarchuk
Hi Vinay,
Thank you for your quick response.  "Salesforce CRM Content User" check box is checked in Setup. I can create ContentWorkspace manually with the same credentials I use to authenticate API in UI just fine. I also have no problems creating ContentFolder with API