The Get Immediate Child Topics API retrieves details about a topic and it's immediate child topics. The $level attribute determines how deep the topic hierarchy should go, or how many child topics of a topic are returned in the response.
SecurityoAuthUser or oAuthOnBehalfOfUser or oAuthCustomer or oAuthOnBehalfOfCustomer or oAuthAnonymousCustomer or oAuthClient
The attributes of a topic to be returned in addition to the default list of attributes, listed below. Multiple additional attributes can be specified using a comma-separated list. Passing 'all' returns all attributes.
Default Attributes
These topic attributes are always returned:
Name
Description
id
The ID of the topic.
name
The name of the topic.
articleCountInTopic
Number of articles in this topic.
articleCountInTopicTree
Number of articles in this topic and all sub-topics.
createdBy.id
The ID of the user that created the topic.
createdDate
The date when the topic was created.
departmentId
ID of the department for which this topic belongs to.
topicHomeArticleId
The ID of the article used as the home page of this topic.
modifiedBy.id
The ID of the user that last modified the topic.
modifiedDate
The date when the topic was last modified on.
childCount
Total number of children sub-topis below the current topic
subTopicIds
Array with the list of sub-topics
parentTopicId
ID of the parent topic. -1 if it is the root topic.