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
Adam BusbinAdam Busbin 

Is there a REST API for creating dataCategoryGroup and dataCategory?

Is there a REST API for creating dataCategoryGroups and dataCategory? I can look them up, and tag knowledge articles. I cannot find a way to create new ones.
Best Answer chosen by Adam Busbin
Andrew GAndrew G
Apologies, must have focused too much on your last bit of your post.

How about this link:

https://developer.salesforce.com/docs/atlas.en-us.knowledge_dev.meta/knowledge_dev/knowledge_development_meta_intro.htm

Regards
Andrew
 

All Answers

Andrew GAndrew G
Goto Setup > Feature Settings > Knowledge > Data Category Setup

Some reading that may help

https://trailhead.salesforce.com/en/content/learn/projects/set-up-salesforce-knowledge/create-and-customize-data-categories

Regards
Andrew
Adam BusbinAdam Busbin
Thank you for answering, but those documents are for creating them via the UI I am looking for the REST endpoint and documentation.
Andrew GAndrew G
Apologies, must have focused too much on your last bit of your post.

How about this link:

https://developer.salesforce.com/docs/atlas.en-us.knowledge_dev.meta/knowledge_dev/knowledge_development_meta_intro.htm

Regards
Andrew
 
This was selected as the best answer
Adam BusbinAdam Busbin

Thanks for pointing me in the right direction. Managed to get it createing, but there are a couple typos in the example XML file. The <objectUsage> closing tag doesn't have a "/" so it makes it invalid XML, and the <object>KnowledgeArticleVersion </object> has a space after the object name, so it cannot match the object, the report reads "There is no entity matching KnowledgeArticleVersion".