Exposes Knowledge Management document APIs to widgets.
Properties
Name | Access | Type | Description |
---|---|---|---|
ContentTypeId | Read | Guid | Content Type Id |
Current | Read | Document | Current |
HelpfulRatingTypeId | Read | Guid | Helpful Rating Type Id |
Methods
AreRatingsEnabled
Velocity
#set($booleanResponse = $km_v1_documents.AreRatingsEnabled($contentId))
JavaScript
var booleanResponse = km_v1_documents.AreRatingsEnabled(contentId);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
contentId | Guid | Content Id | Required |
Returns
Boolean
Get
Velocity
#set($documentResponse = $km_v1_documents.Get($contentId))
JavaScript
var documentResponse = km_v1_documents.Get(contentId);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
contentId | Guid | Content Id | Required |
Returns
List
Velocity
#set($pagedListResponse = $km_v1_documents.List($applicationId, "%{ }"))
JavaScript
var pagedListResponse = km_v1_documents.List(applicationId, { });
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
applicationId | Guid | Application Id | Required |
Returns
MarkAsViewed
Velocity
#set($additionalInfoResponse = $km_v1_documents.MarkAsViewed($contentId))
JavaScript
var additionalInfoResponse = km_v1_documents.MarkAsViewed(contentId);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
contentId | Guid | Content Id | Required |
Returns
SendFeedback
Velocity
#set($additionalInfoResponse = $km_v1_documents.SendFeedback($contentId, $feedback))
JavaScript
var additionalInfoResponse = km_v1_documents.SendFeedback(contentId, feedback);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
contentId | Guid | Content Id | Required | ||
feedback | String | Feedback | Required |