Newer Version Available
Managed Topics
Only community managers (users with the Create and Set Up Experiences or Manage Experiences permission) can create or reorder managed topics.
- Resource
-
- Available version
- 32.0
- HTTP methods
- GET, POST, PATCH, HEAD
- Request parameters for GET
- If you make a GET request without request parameters, you get only featured and
navigational topics. To get content topics, make a GET request with the managedTopicType parameter set to
Content, for
example:
- To see all your managed topic hierarchies, make a GET request with the depth parameter set to 8 and the
managedTopicType set to Navigational, for example:
- Response body for GET
- Managed Topic Collection
- Request body for POST
- Make POST requests to create managed topics and create topic hierarchies.
-
- Root XML tag
- <managedTopic>
- JSON example using recordId
- This example creates a managed topic from an existing standard topic (using the recordId of the standard topic). It also creates a topic hierarchy by assigning a parent topic with the parentId.
-
- JSON example using name
- This example creates a new managed topic by name and creates a topic hierarchy by assigning a parent topic with the parentId.
-
- Properties
-
Name Type Description Required or Optional Available Version managedTopicType String Type of managed topic. - Content—Topics that are associated with native content.
- Featured—Topics that are featured, for example, on the Experience Cloud site home page, but don’t provide overall navigation.
- Navigational—Topics that display in a navigational menu in the Experience Cloud site.
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.
To create a child managed topic, specify Navigational as the managedTopicType and specify a parentId.
Required 32.0 name String Name of the managed topic. Required for new topics You must specify either name or recordId. You can’t specify both.
32.0 parentId String ID of the parent managed topic. If you specify a parentId, also specify Navigational as the managedTopicType.
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.
Optional 35.0 recordId String ID of the record to become a managed topic. In version 32.0 and later, recordId must be a topic ID.
Required for existing topics if the Name property isn’t used You must specify either name or recordId. You can’t specify both.
32.0
- Request parameters for POST
-
- Response body for POST
- Managed Topic
- Request body for PATCH
- Make a PATCH request to reorder parent managed topics or children managed topics with
the same parent. You can’t reorder Content
topics.
- Root XML tag
- <managedTopicPositionCollection>
- JSON example
-
- Properties
-
Name Type Description Required or Optional Available Version managedTopicPositions Managed Topic Position Input[] Collection of managed topic position request bodies. This collection can include Featured and Navigational managed topics and doesn’t have to include all managed topics. If you don’t include all managed topics in managedTopicPositions, the managed topics are reordered by respecting the positions indicated in managedTopicPositions. Any managed topics that aren’t included in managedTopicPositions are pushed down to the next available position. See Reorder managed topics example.
Required 32.0 - Reorder managed topics example
-
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 Managed Topic Position Collection Input:
Managed Topic Position ManagedTopicD 0 ManagedTopicE 2 The result is:
Managed Topic Position ManagedTopicD 0 ManagedTopicA 1 ManagedTopicE 2 ManagedTopicB 3 ManagedTopicC 4
- Response body for PATCH
- Managed Topic Collection