Use this method to get a decision tree from a specific content id:
client.getContentDecisionTree(contentId:Integer).then(function(response){
//...
});
Name | Type | Description |
---|---|---|
contentId | integer | Content identifier from the knowledge base. Minimum:0 |
This method does not have any options.
This method calls the Knowledge API’s GET /contents/{contentId}/decision-tree
endpoint. Please refer to the Responses section of that endpoint on the Knowledge API Routes page for the response format.
The following example is set to retrieve a decision tree from content "1":
client.getContentDecisionTree(1).then(function(response){
response.data.results.forEach(function(result) {
console.log(`Result(${result.query})`);
});
});