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.

https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_contentworkspacepermission.htm
https://help.salesforce.com/articleView?id=content_workspace_perm_add.htm&type=5
https://help.salesforce.com/articleView?id=content_workspace_perm.htm&type=5

Thanks,
Vinay Kumar
Nalini ch 6Nalini ch 6
Hello 

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!

https://jbshelpdesk.secure.force.com

Thanks,
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