Example: Create a Topic Hierarchy in Experience Cloud Sites
This example creates a topic hierarchy in an Experience Cloud site.
The parent topic must be a navigational managed topic.
/connect/communities/{communityId}/managed-topics
GET to retrieve a list of navigational managed topics to identify the parent topic.
POST to create a parent topic. Community managers (users with the Create and Set Up Experiences or Manage Experiences permission) can create managed topics.
Managed Topic Collection
Make a note of the ID of the navigational managed topic you want to be the parent topic. It has a prefix of 0mt.
Managed Topic Input
Managed Topic
Make a note of the ID of the parent topic you created. It has a prefix of 0mt.
In this step, create a managed child topic and link it to its parent in one step.
/connect/communities/{communityId}/managed-topics
POST
Community managers (users with the Create and Set Up Experiences or Manage Experiences permission) can create managed topics.
Managed Topic Input
Use the navigational managed topic ID from Step 1 as the parentId.
Managed Topic
By default, the managed topic response body shows only the top level of a hierarchy. You can have up to three levels in your topic hierarchy. To see all the levels, use this resource and these parameters:
It’s also possible to use a standard topic, instead of a managed topic, to be the child topic, but this requires an additional step.
The parent topic must be a navigational managed topic.
/connect/communities/{communityId}/managed-topics
GET to retrieve a list of navigational managed topics to identify the parent topic.
POST to create a parent topic. Community managers (users with the Create and Set Up Experiences or Manage Experiences permission) can create managed topics.
Managed Topic Collection
Make a note of the ID of the navigational managed topic you want to be the parent topic. It has a prefix of 0mt.
Managed Topic Input
Managed Topic
Make a note of the ID of the parent topic you created. It has a prefix of 0mt.
In this example, identify or create a standard topic, instead of a managed topic, to be the child topic.
/connect/communities/{communityId}/topics
GET to retrieve a list of topics to identify the child topic.
POST to create a child topic. Users with the Create Topics permission can create topics.
Topic Collection
Make a note of the ID of the topic you want to be the child topic. It has a prefix of 0TO.
Topic Input
Topic
Make a note of the ID of the child topic you created. It has a prefix of 0TO.
/connect/communities/{communityId}/managed-topics
POST
Managed Topic Input
Use the managed topic ID from Example 2, Step 1 as the parentId and the topic ID from Example 2, Step 2 as the recordId.
Managed Topic