Enables scripted content fragments to use Wiki page revisions
Properties
Name | Access | Type | Description |
---|---|---|---|
Current | Read | WikiPageRevision |
Current Wiki Page Revision |
Methods
Delete
Delete a wiki page revision
Velocity
#set($additionalInfoResponse = $core_v2_wikiPageRevision.Delete($pageId, $revisionNumber))
JavaScript
var additionalInfoResponse = core_v2_wikiPageRevision.Delete(pageId, revisionNumber);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
pageId | Int32 |
Page Id | Required | ||
revisionNumber | Int32 |
Revision Number | Required |
Returns
Get
Gets a wiki page revision
Velocity
#set($wikiPageRevisionResponse = $core_v2_wikiPageRevision.Get($wikiId, $revisionNumber, "%{ PageIndex = $pageIndexArg, PageSize = $pageSizeArg }"))
JavaScript
var wikiPageRevisionResponse = core_v2_wikiPageRevision.Get(wikiId, revisionNumber, { PageIndex: pageIndexArg, PageSize: pageSizeArg });
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
wikiId | Int32 |
Wiki Id | Required | ||
revisionNumber | Int32 |
Revision Number | Required | ||
PageIndex | Int32 |
Specify the page number of paged results to return. Zero-based index. | Optional | 0 | |
PageSize | Int32 |
Specify the number of results to return per page. | Optional | 20 |
Returns
List
Lists wiki page revisions
Velocity
#set($pagedListResponse = $core_v2_wikiPageRevision.List($wikiId, "%{ PageId = $pageIdArg, PageIndex = $pageIndexArg, PageKey = $pageKeyArg, PageSize = $pageSizeArg, SortOrder = $sortOrderArg }"))
JavaScript
var pagedListResponse = core_v2_wikiPageRevision.List(wikiId, { PageId: pageIdArg, PageIndex: pageIndexArg, PageKey: pageKeyArg, PageSize: pageSizeArg, SortOrder: sortOrderArg });
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
wikiId | Int32 |
Wiki Id | Required | ||
options | Options | Set of optional parameters including: | Required | ||
PageId | Int32 |
Either Id or WikiId and PageKey should be specified | Optional | Required without PageKey | |
PageIndex | Int32 |
Specify the page number of paged results to return. Zero-based index. | Optional | 0 | |
PageKey | String |
Either Id or WikiId and PageKey should be specified | Optional | Required without PageID | |
PageSize | Int32 |
Specify the number of results to return per page. | Optional | 20 | |
SortOrder | String |
Sort Order | Optional | Descending | Ascending, Descending |