Site
Settings
GET /api/site.ashx/settings
Response
Status: 200 OK
<Settings>
...
</Settings>
Update Settings
POST or PUT /api/site.ashx/settings/
Request
<Settings>
...
</Settings>
Response
Status: 200 OK
<Settings>
...
</Settings>
ActivityMessages
List
GET /api/site.ashx/activitymessages
Response
Status: 200 OK
<MessageList PageSize="20" PageIndex="0" TotalCount="22"> <Message>
... </Message> ...
</MessageList>
GET /api/site.ashx/activitymessages/{paged query parameters}
Response
Status: 200 OK
<MessageList PageSize="20" PageIndex="0" TotalCount="22"> <Message>
... </Message> ...
</MessageList>
GET /api/site.ashx/activitymessages/{Id}
Response
Status: 200 OK
<Message>
...
</Message>
Data Reference
Settings
<Settings Name="dev" Endpoint="http://localhost/cs/api/site.ashx/settings"> <SiteName>Community Server</SiteName> <SiteDescription>
The platform that enables you to build rich, interactive communities
</SiteDescription>
<EnableDisplaySiteDescription>true</EnableDisplaySiteDescription>
<TimeZone>-8</TimeZone>
<DateFormat>d MMM yyyy</DateFormat>
<TimeFormat>h:mm tt</TimeFormat>
<EnableDisplayCurrentTime>true</EnableDisplayCurrentTime>
<EnableWhoIsOnline>true</EnableWhoIsOnline>
<EnableDisplaySiteStatistics>true</EnableDisplaySiteStatistics>
<DefaultSiteUrl>http://localhost/cs</DefaultSiteUrl>
<EnableContentLanguageFilters>false</EnableContentLanguageFilters>
<EnableDisplayEulaGraphic>true</EnableDisplayEulaGraphic>
<EnableSecureSyndication>false</EnableSecureSyndication>
<EnableRssSearch>false</EnableRssSearch>
<EnableAnonymousPosting>false</EnableAnonymousPosting>
<EnablePostCensorship>true</EnablePostCensorship>
<EnableEmoticons>true</EnableEmoticons>
<SectionRatingType>ThreadRating</SectionRatingType>
<UserPostingPerformance>PostCount</UserPostingPerformance>
<EnableDisplayUserRankAsPicture>false</EnableDisplayUserRankAsPicture>
<SearchResultsPerPage>10</SearchResultsPerPage>
<NumberOfTopPosters>10</NumberOfTopPosters>
<EnablePosterIPAddressTracking>true</EnablePosterIPAddressTracking>
<EnableDisplayPosterIPAddressToPublic> false </EnableDisplayPosterIPAddressToPublic> <EnableDisplayPosterIPAddressToModerators> true </EnableDisplayPosterIPAddressToModerators> <EnabledApplications>
<EnableForums>false</EnableForums>
<EnableBlogs>true</EnableBlogs>
<EnableMediaGalleries>true</EnableMediaGalleries>
</EnabledApplications> <Contact>
<AdminEmailAddress/>
<ContactName/>
<ContactEmailAddress/>
<ContactFaxNumber/>
<ContactAddress/>
</Contact>
<Email>
<EnableEmail>true</EnableEmail>
<EmailEncoding>utf-8</EmailEncoding>
<EmailSubjectEncoding>utf-8</EmailSubjectEncoding>
<EmailThrottle>-1</EmailThrottle>
<SmtpServer>localhost</SmtpServer>
<EnableSmtpOverSsl>false</EnableSmtpOverSsl>
<EnableSmtpUseWindowsAuthentication>false</EnableSmtpUseWindowsAuthentication>
<EnableSmtpAuthentication>false</EnableSmtpAuthentication>
<SmtpUsername/>
<SmtpPassword/>
<SmtpPortNumber>0</SmtpPortNumber>
<EnableMailGateway>false</EnableMailGateway>
<MailGatewayRemoteAccessCode/>
<MailGatewayEmailDomain>localhost</MailGatewayEmailDomain>
</Email>
</Settings>
Activity Message
<ActivityMessage>
<Id>82f5c60f-0ef6-4500-8d42-81c3e0b257e6</Id> <Author Id="2101" Endpoint="http://localhost/cs/api/membership.ashx/users/2101"/> <Subject/> <Body>
<a href="/cs/members/Anonymous.aspx">Anonymous</a> added ...
</Body>
<DateCreated>2008-01-21T13:28:54.633</DateCreated>
<Type>NewBlogPost</Type>
</ActivityMessage>
Query Reference
Query properties are key value pairs separated by a semicolon. Arrays should be formatted as comma separated strings.
Paged Query
| Property | Type | Description |
|---|---|---|
| PageSize | int | (defaults to 20) |
| PageIndex | int | (defaults to 0) |