The following are methods for ManagedTopics. All methods are static.
32.0
No
public static ConnectApi.ManagedTopic createManagedTopic(String communityId, String recordId, ConnectApi.ManagedTopicType managedTopicType)
You can create up to 25 Featured and 5,000 Content topics. You can create up to eight levels of Navigational managed topics with 25 top-level topics and 10 children topics per level for a maximum of 2,775 Navigational topics.
Type: ConnectApi.ManagedTopic
Only community managers (users with the Create and Set Up Communities or Manage Communities permission) can create managed topics.
35.0
No
public static ConnectApi.ManagedTopic createManagedTopic(String communityId, String recordId, ConnectApi.ManagedTopicType managedTopicType, String parentId)
You can create up to 25 Featured and 5,000 Content topics. You can create up to eight levels of Navigational managed topics with 25 top-level topics and 10 children topics per level for a maximum of 2,775 Navigational topics.
You can create up to eight levels (parent, direct children, their children, etc.) of managed topics and up to 10 children managed topics per managed topic.
Type: ConnectApi.ManagedTopic
Only community managers (users with the Create and Set Up Communities or Manage Communities permission) can create managed topics.
32.0
No
public static ConnectApi.ManagedTopic createManagedTopicByName(String communityId, String name, ConnectApi.ManagedTopicType managedTopicType)
A topic can be associated with all three managed topic types, so a topic can be a Featured, Navigational, and Content topic.
You can create up to 25 Featured and 5,000 Content topics. You can create up to eight levels of Navigational managed topics with 25 top-level topics and 10 children topics per level for a maximum of 2,775 Navigational topics.
Type: ConnectApi.ManagedTopic
Only community managers (users with the Create and Set Up Communities or Manage Communities permission) can create managed topics.
35.0
No
public static ConnectApi.ManagedTopic createManagedTopicByName(String communityId, String name, ConnectApi.ManagedTopicType managedTopicType, String parentId)
You can create up to 25 Featured and 5,000 Content topics. You can create up to eight levels of Navigational managed topics with 25 top-level topics and 10 children topics per level for a maximum of 2,775 Navigational topics.
You can create up to eight levels (parent, direct children, their children, etc.) of managed topics and up to 10 children managed topics per managed topic.
Type: ConnectApi.ManagedTopic
Only community managers (users with the Create and Set Up Communities or Manage Communities permission) can create managed topics.
32.0
No
public static deleteManagedTopic(String communityId, String managedTopicId)
Type: Void
Only community managers (users with the Create and Set Up Communities or Manage Communities permission) can delete managed topics.
32.0
32.0
No
public static ConnectApi.ManagedTopic getManagedTopic(String communityId, String managedTopicId)
Type: ConnectApi.ManagedTopic
35.0
35.0
No
public static ConnectApi.ManagedTopic getManagedTopic(String communityId, String managedTopicId, Integer depth)
Type: ConnectApi.ManagedTopic
32.0
32.0
No
public static ConnectApi.ManagedTopicCollection getManagedTopics(String communityId)
32.0
32.0
No
public static ConnectApi.ManagedTopicCollection getManagedTopics(String communityId, ConnectApi.ManagedTopicType managedTopicType)
A topic can be associated with all three managed topic types, so a topic can be a Featured, Navigational, and Content topic.
If you specify Content, up to 50 topics are returned. If you want more than 50 Content topics, use getManagedTopics(communityId, managedTopicType, pageParam, pageSize).
35.0
35.0
No
public static ConnectApi.ManagedTopicCollection getManagedTopics(String communityId, ConnectApi.ManagedTopicType managedTopicType, Integer depth)
A topic can be associated with all three managed topic types, so a topic can be a Featured, Navigational, and Content topic.
38.0
38.0
No
public static ConnectApi.ManagedTopicCollection getManagedTopics(String communityId, ConnectApi.ManagedTopicType managedTopicType, List<String> recordIds, Integer depth)
A topic can be associated with all three managed topic types, so a topic can be a Featured, Navigational, and Content topic.
If you list more than 10 topic IDs, you can’t specify 2–8 for depth.
44.0
44.0
No
public static ConnectApi.ManagedTopicCollection getManagedTopics(String communityId, ConnectApi.ManagedTopicType managedTopicType, Integer pageParam, Integer pageSize)
A topic can be associated with all three managed topic types, so a topic can be a Featured, Navigational, and Content topic.
32.0
No
public static ConnectApi.ManagedTopicCollection reorderManagedTopics(String communityId, ConnectApi.ManagedTopicPositionCollectionInput managedTopicPositionCollection)
Only community managers (users with the Create and Set Up Communities or Manage Communities permission) can reorder managed topics.
You can reorder parent managed topics or children managed topics with the same parent. If you don’t include all managed topics in the ConnectApi.ManagedTopicPositionCollectionInput, the managed topics are reordered by respecting the positions indicated in the ConnectApi.ManagedTopicPositionCollectionInput and then by pushing down any managed topics that aren’t included in the ConnectApi.ManagedTopicPositionCollectionInput to the next available position.
If you have these managed topics:
Managed Topic | Position |
---|---|
ManagedTopicA | 0 |
ManagedTopicB | 1 |
ManagedTopicC | 2 |
ManagedTopicD | 3 |
ManagedTopicE | 4 |
And you reorder managed topics by including this information in ConnectApi.ManagedTopicPositionCollectionInput:
Managed Topic | Position |
---|---|
ManagedTopicD | 0 |
ManagedTopicE | 2 |
The result is:
Managed Topic | Position |
---|---|
ManagedTopicD | 0 |
ManagedTopicA | 1 |
ManagedTopicE | 2 |
ManagedTopicB | 3 |
ManagedTopicC | 4 |
The following methods for ManagedTopics are retired.
35.0–37.0
35.0
No
public static ConnectApi.ManagedTopicCollection getManagedTopics(String communityId, ConnectApi.ManagedTopicType managedTopicType, String recordId, Integer depth)
A topic can be associated with all three managed topic types, so a topic can be a Featured, Navigational, and Content topic.