GET api.ashx/v2/wikis/{wikiid}/pages/{pageid}/revisions.{json|xml}
LIST wiki page revisions.
Scopes
Wikis › Read Revisions wikis.revisions.readonly
Request Parameters
Name | Type | Location | Description | Required | Default | Options |
---|---|---|---|---|---|---|
PageId | int? | Either Id or WikiId and PageKey should be specified. | Optional | |||
PageIndex | int? | Specify the page number of paged results to return. Zero-based index. If not specified the default is 0. | Optional | |||
PageKey | string | Either Id or WikiId and PageKey should be specified. | Optional | |||
PageSize | int? | Specify the number of results to return per page. If not set the default is 20. The max is 100. | Optional | |||
PostTarget | string | Render target. Options: Unknown, Web, Syndication, Offline, Other, Print, Nntp, Email, WebQuote, WebServices. | Optional | |||
SortOrder | string | Options include Ascending, Descending. Default is Descending. | Optional | |||
WikiId | int? | Wiki Id | Required |
Example Requests
Widget Javascript
jQuery.telligent.evolution.get({ url: jQuery.telligent.evolution.site.getBaseUrl() + 'api.ashx/v2/wikis/{wikiid}/pages/{pageid}/revisions.json', data: { 'wikiid': '6', 'pageid': '6' } }).then(function(response) { // use response });
Example Responses
JSON
{ "PageSize": 2, "PageIndex": 0, "TotalCount": 2, "WikiPageRevisions": [ { "Title": "title", "PageKey": "pagekey", "Url": "url", "LastModifiedDate": "2012-01-04T00:00:00", "Body": "body", "FormattedBody": "formattedbody", "PageId": 6, "WikiId": 25, "GroupId": 8, "ParentPageId": 4, "IsReadOnly": true, "RevisionNumber": 7, "Tags": "tags", "MetaTitle": "metatitle", "MetaDescription": "metadescription", "MetaKeywords": "metakeywords", "User": { "AvatarUrl": "avatarurl", "DisplayName": "displayname", "ProfileUrl": "profileurl", "Username": "username", "CurrentStatus": { "Author": { "AvatarUrl": "avatarurl", "DisplayName": "displayname", "ProfileUrl": "profileurl", "Username": "username", "CurrentStatus": { "Author": null, "Body": "body", "CreatedDate": null, "ReplyCount": 27, "Group": null, "AttachedUrl": "attachedurl", "HasReplies": null, "ContentId": "49fec544-6df7-4a82-872b-f8be586d5e9e", "ContentType": "56f1a3ec-14bb-45c6-949f-ee7776d68c78", "Url": "url", "IsPublished": true, "Content": null, "Id": "49fec544-6df7-4a82-872b-f8be586d5e9e" }, "Id": 32 }, "Body": "body", "CreatedDate": "2012-05-02T00:00:00", "ReplyCount": 52, "Group": { "AvatarUrl": "avatarurl", "DateCreated": "2012-06-04T00:00:00", "Description": "description", "Key": "key", "Name": "name", "ParentGroupId": 19, "Url": "url", "TotalMembers": 112, "HasGroups": true, "GroupCount": 61, "GroupType": "grouptype", "EnableGroupMessages": true, "EnableContact": true, "SearchUniqueId": "searchuniqueid", "IsEnabled": true, "ExtendedAttributes": [], "ContainerId": "fe65240b-044c-4292-9946-f10e0361ecff", "ContainerTypeId": "23b05a61-c3e5-4451-90d9-bfa00453bce4", "Container": { "ContainerId": "2d525bad-c4df-470d-a193-a1c6d66e5c3e", "ContainerTypeId": "bd519379-b61f-4e2f-b0f9-c0f28c5cceb1", "HtmlName": "htmlname", "Url": "url", "AvatarUrl": "avatarurl" }, "Id": 18 }, "AttachedUrl": "attachedurl", "HasReplies": true, "ContentId": "9f5a6721-639d-4e1d-ab6a-ce63b7750f46", "ContentType": "56f1a3ec-14bb-45c6-949f-ee7776d68c78", "Url": "url", "IsPublished": true, "Content": { "CreatedByUser": { "AvatarUrl": "avatarurl", "DisplayName": "displayname", "ProfileUrl": "profileurl", "Username": "username", "CurrentStatus": null, "Id": null }, "ContentId": "6cdcf200-3bad-476d-af45-97b52545c337", "ContentTypeId": "b04540ec-eb38-4fa1-b7bb-e3fde05401b4", "CreatedDate": "2011-05-28T00:00:00", "HtmlName": "htmlname", "HtmlDescription": "htmldescription", "Url": "url", "AvatarUrl": "avatarurl", "Application": { "ApplicationId": "44df201a-07e6-42eb-96c7-8ce7ce35aab6", "ApplicationTypeId": "49fec544-6df7-4a82-872b-f8be586d5e9e", "HtmlName": "htmlname", "HtmlDescription": "htmldescription", "Url": "url", "AvatarUrl": "avatarurl", "Container": null } }, "Id": "9f5a6721-639d-4e1d-ab6a-ce63b7750f46" }, "Id": 76 }, "Id": 25 }, { "Title": "title", "PageKey": "pagekey", "Url": "url", "LastModifiedDate": "2011-12-09T00:00:00", "Body": "body", "FormattedBody": "formattedbody", "PageId": 8, "WikiId": 4, "GroupId": 7, "ParentPageId": 27, "IsReadOnly": true, "RevisionNumber": 32, "Tags": "tags", "MetaTitle": "metatitle", "MetaDescription": "metadescription", "MetaKeywords": "metakeywords", "User": { "AvatarUrl": "avatarurl", "DisplayName": "displayname", "ProfileUrl": "profileurl", "Username": "username", "CurrentStatus": { "Author": { "AvatarUrl": "avatarurl", "DisplayName": "displayname", "ProfileUrl": "profileurl", "Username": "username", "CurrentStatus": { "Author": null, "Body": "body", "CreatedDate": null, "ReplyCount": 52, "Group": null, "AttachedUrl": "attachedurl", "HasReplies": null, "ContentId": "2d525bad-c4df-470d-a193-a1c6d66e5c3e", "ContentType": "56f1a3ec-14bb-45c6-949f-ee7776d68c78", "Url": "url", "IsPublished": true, "Content": null, "Id": "2d525bad-c4df-470d-a193-a1c6d66e5c3e" }, "Id": 19 }, "Body": "body", "CreatedDate": "2012-03-29T00:00:00", "ReplyCount": 112, "Group": { "AvatarUrl": "avatarurl", "DateCreated": "2012-04-19T00:00:00", "Description": "description", "Key": "key", "Name": "name", "ParentGroupId": 61, "Url": "url", "TotalMembers": 18, "HasGroups": true, "GroupCount": 76, "GroupType": "grouptype", "EnableGroupMessages": true, "EnableContact": true, "SearchUniqueId": "searchuniqueid", "IsEnabled": true, "ExtendedAttributes": [], "ContainerId": "9ba1ec43-dc34-4e27-a579-4a0855144e2f", "ContainerTypeId": "23b05a61-c3e5-4451-90d9-bfa00453bce4", "Container": { "ContainerId": "e3715662-2528-4ba1-84a7-bfcd9d548f80", "ContainerTypeId": "6cdcf200-3bad-476d-af45-97b52545c337", "HtmlName": "htmlname", "Url": "url", "AvatarUrl": "avatarurl" }, "Id": 6 }, "AttachedUrl": "attachedurl", "HasReplies": true, "ContentId": "bd519379-b61f-4e2f-b0f9-c0f28c5cceb1", "ContentType": "56f1a3ec-14bb-45c6-949f-ee7776d68c78", "Url": "url", "IsPublished": true, "Content": { "CreatedByUser": { "AvatarUrl": "avatarurl", "DisplayName": "displayname", "ProfileUrl": "profileurl", "Username": "username", "CurrentStatus": null, "Id": null }, "ContentId": "49fec544-6df7-4a82-872b-f8be586d5e9e", "ContentTypeId": "9f5a6721-639d-4e1d-ab6a-ce63b7750f46", "CreatedDate": "2012-01-16T00:00:00", "HtmlName": "htmlname", "HtmlDescription": "htmldescription", "Url": "url", "AvatarUrl": "avatarurl", "Application": { "ApplicationId": "fe65240b-044c-4292-9946-f10e0361ecff", "ApplicationTypeId": "2d525bad-c4df-470d-a193-a1c6d66e5c3e", "HtmlName": "htmlname", "HtmlDescription": "htmldescription", "Url": "url", "AvatarUrl": "avatarurl", "Container": null } }, "Id": "bd519379-b61f-4e2f-b0f9-c0f28c5cceb1" }, "Id": 25 }, "Id": 4 } ], "Info": [ "string", "string" ], "Warnings": [ "string", "string" ], "Errors": [ "string", "string" ] }
XML
<?xml version="1.0" encoding="utf-16"?> <Response> <Info> <Message>string</Message> <Message>string</Message> </Info> <Warnings> <Message>string</Message> <Message>string</Message> </Warnings> <Errors> <Message>string</Message> <Message>string</Message> </Errors> <WikiPageRevisions PageSize="2" PageIndex="0" TotalCount="2"> <WikiPageRevision> <Id>25</Id> <Title>title</Title> <PageKey>pagekey</PageKey> <Url>url</Url> <LastModifiedDate>2012-01-04T00:00:00</LastModifiedDate> <Body>body</Body> <FormattedBody>formattedbody</FormattedBody> <PageId>6</PageId> <WikiId>25</WikiId> <GroupId>8</GroupId> <ParentPageId>4</ParentPageId> <IsReadOnly>true</IsReadOnly> <RevisionNumber>7</RevisionNumber> <Tags>tags</Tags> <MetaTitle>metatitle</MetaTitle> <MetaDescription>metadescription</MetaDescription> <MetaKeywords>metakeywords</MetaKeywords> <User> <Id>76</Id> <AvatarUrl>avatarurl</AvatarUrl> <DisplayName>displayname</DisplayName> <ProfileUrl>profileurl</ProfileUrl> <Username>username</Username> <CurrentStatus> <Id>9f5a6721-639d-4e1d-ab6a-ce63b7750f46</Id> <Author> <Id>32</Id> <AvatarUrl>avatarurl</AvatarUrl> <DisplayName>displayname</DisplayName> <ProfileUrl>profileurl</ProfileUrl> <Username>username</Username> <CurrentStatus> <Id>49fec544-6df7-4a82-872b-f8be586d5e9e</Id> <Body>body</Body> <CreatedDate /> <ReplyCount>27</ReplyCount> <AttachedUrl>attachedurl</AttachedUrl> <ContentId>49fec544-6df7-4a82-872b-f8be586d5e9e</ContentId> <ContentType>56f1a3ec-14bb-45c6-949f-ee7776d68c78</ContentType> <Url>url</Url> <IsPublished>true</IsPublished> </CurrentStatus> </Author> <Body>body</Body> <CreatedDate>2012-05-02T00:00:00</CreatedDate> <ReplyCount>52</ReplyCount> <Group> <Id>18</Id> <AvatarUrl>avatarurl</AvatarUrl> <DateCreated>2012-06-04T00:00:00</DateCreated> <Description>description</Description> <Key>key</Key> <Name>name</Name> <ParentGroupId>19</ParentGroupId> <Url>url</Url> <TotalMembers>112</TotalMembers> <HasGroups>true</HasGroups> <GroupCount>61</GroupCount> <GroupType>grouptype</GroupType> <EnableGroupMessages>true</EnableGroupMessages> <EnableContact>true</EnableContact> <SearchUniqueId>searchuniqueid</SearchUniqueId> <ExtendedAttributes /> <ContainerId>fe65240b-044c-4292-9946-f10e0361ecff</ContainerId> <Container> <ContainerId>2d525bad-c4df-470d-a193-a1c6d66e5c3e</ContainerId> <ContainerTypeId>bd519379-b61f-4e2f-b0f9-c0f28c5cceb1</ContainerTypeId> <HtmlName>htmlname</HtmlName> <Url>url</Url> <AvatarUrl>avatarurl</AvatarUrl> </Container> </Group> <AttachedUrl>attachedurl</AttachedUrl> <ContentId>9f5a6721-639d-4e1d-ab6a-ce63b7750f46</ContentId> <ContentType>56f1a3ec-14bb-45c6-949f-ee7776d68c78</ContentType> <Url>url</Url> <IsPublished>true</IsPublished> <Content> <CreatedByUser> <Id /> <AvatarUrl>avatarurl</AvatarUrl> <DisplayName>displayname</DisplayName> <ProfileUrl>profileurl</ProfileUrl> <Username>username</Username> </CreatedByUser> <ContentId>6cdcf200-3bad-476d-af45-97b52545c337</ContentId> <ContentTypeId>b04540ec-eb38-4fa1-b7bb-e3fde05401b4</ContentTypeId> <CreatedDate>2011-05-28T00:00:00</CreatedDate> <HtmlName>htmlname</HtmlName> <HtmlDescription>htmldescription</HtmlDescription> <Url>url</Url> <AvatarUrl>avatarurl</AvatarUrl> <Application> <ApplicationId>44df201a-07e6-42eb-96c7-8ce7ce35aab6</ApplicationId> <ApplicationTypeId>49fec544-6df7-4a82-872b-f8be586d5e9e</ApplicationTypeId> <HtmlName>htmlname</HtmlName> <HtmlDescription>htmldescription</HtmlDescription> <Url>url</Url> <AvatarUrl>avatarurl</AvatarUrl> </Application> </Content> </CurrentStatus> </User> </WikiPageRevision> <WikiPageRevision> <Id>4</Id> <Title>title</Title> <PageKey>pagekey</PageKey> <Url>url</Url> <LastModifiedDate>2011-12-09T00:00:00</LastModifiedDate> <Body>body</Body> <FormattedBody>formattedbody</FormattedBody> <PageId>8</PageId> <WikiId>4</WikiId> <GroupId>7</GroupId> <ParentPageId>27</ParentPageId> <IsReadOnly>true</IsReadOnly> <RevisionNumber>32</RevisionNumber> <Tags>tags</Tags> <MetaTitle>metatitle</MetaTitle> <MetaDescription>metadescription</MetaDescription> <MetaKeywords>metakeywords</MetaKeywords> <User> <Id>25</Id> <AvatarUrl>avatarurl</AvatarUrl> <DisplayName>displayname</DisplayName> <ProfileUrl>profileurl</ProfileUrl> <Username>username</Username> <CurrentStatus> <Id>bd519379-b61f-4e2f-b0f9-c0f28c5cceb1</Id> <Author> <Id>19</Id> <AvatarUrl>avatarurl</AvatarUrl> <DisplayName>displayname</DisplayName> <ProfileUrl>profileurl</ProfileUrl> <Username>username</Username> <CurrentStatus> <Id>2d525bad-c4df-470d-a193-a1c6d66e5c3e</Id> <Body>body</Body> <CreatedDate /> <ReplyCount>52</ReplyCount> <AttachedUrl>attachedurl</AttachedUrl> <ContentId>2d525bad-c4df-470d-a193-a1c6d66e5c3e</ContentId> <ContentType>56f1a3ec-14bb-45c6-949f-ee7776d68c78</ContentType> <Url>url</Url> <IsPublished>true</IsPublished> </CurrentStatus> </Author> <Body>body</Body> <CreatedDate>2012-03-29T00:00:00</CreatedDate> <ReplyCount>112</ReplyCount> <Group> <Id>6</Id> <AvatarUrl>avatarurl</AvatarUrl> <DateCreated>2012-04-19T00:00:00</DateCreated> <Description>description</Description> <Key>key</Key> <Name>name</Name> <ParentGroupId>61</ParentGroupId> <Url>url</Url> <TotalMembers>18</TotalMembers> <HasGroups>true</HasGroups> <GroupCount>76</GroupCount> <GroupType>grouptype</GroupType> <EnableGroupMessages>true</EnableGroupMessages> <EnableContact>true</EnableContact> <SearchUniqueId>searchuniqueid</SearchUniqueId> <ExtendedAttributes /> <ContainerId>9ba1ec43-dc34-4e27-a579-4a0855144e2f</ContainerId> <Container> <ContainerId>e3715662-2528-4ba1-84a7-bfcd9d548f80</ContainerId> <ContainerTypeId>6cdcf200-3bad-476d-af45-97b52545c337</ContainerTypeId> <HtmlName>htmlname</HtmlName> <Url>url</Url> <AvatarUrl>avatarurl</AvatarUrl> </Container> </Group> <AttachedUrl>attachedurl</AttachedUrl> <ContentId>bd519379-b61f-4e2f-b0f9-c0f28c5cceb1</ContentId> <ContentType>56f1a3ec-14bb-45c6-949f-ee7776d68c78</ContentType> <Url>url</Url> <IsPublished>true</IsPublished> <Content> <CreatedByUser> <Id /> <AvatarUrl>avatarurl</AvatarUrl> <DisplayName>displayname</DisplayName> <ProfileUrl>profileurl</ProfileUrl> <Username>username</Username> </CreatedByUser> <ContentId>49fec544-6df7-4a82-872b-f8be586d5e9e</ContentId> <ContentTypeId>9f5a6721-639d-4e1d-ab6a-ce63b7750f46</ContentTypeId> <CreatedDate>2012-01-16T00:00:00</CreatedDate> <HtmlName>htmlname</HtmlName> <HtmlDescription>htmldescription</HtmlDescription> <Url>url</Url> <AvatarUrl>avatarurl</AvatarUrl> <Application> <ApplicationId>fe65240b-044c-4292-9946-f10e0361ecff</ApplicationId> <ApplicationTypeId>2d525bad-c4df-470d-a193-a1c6d66e5c3e</ApplicationTypeId> <HtmlName>htmlname</HtmlName> <HtmlDescription>htmldescription</HtmlDescription> <Url>url</Url> <AvatarUrl>avatarurl</AvatarUrl> </Application> </Content> </CurrentStatus> </User> </WikiPageRevision> </WikiPageRevisions> </Response>