<back to all web services

SitemapSettingsMessage

The following routes are available for this service:
All Verbs/RestApi/sitefinity/sitemap/settings
All Verbs/RestApi/sitefinity/sitemap/settings/{Id}
namespace Telerik.Sitefinity.SitemapGenerator.Data

open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    type SitemapGenerationCondition =
        | Daily = 0
        | Weekly = 1
        | Manual = 2

    [<AllowNullLiteral>]
    type SitemapSettings() = 
        member val IsEnabled:Boolean = new Boolean() with get,set
        member val UrlLimit:Int32 = new Int32() with get,set
        member val Compress:Boolean = new Boolean() with get,set
        member val Condition:SitemapGenerationCondition = new SitemapGenerationCondition() with get,set
        member val DayToStart:Int32 = new Int32() with get,set
        member val TimeToStart:DateTime = new DateTime() with get,set
        member val SiteId:Guid = new Guid() with get,set
        member val LastExecutionTime:String = null with get,set
        member val LastError:String = null with get,set
        member val PingGoogle:Boolean = new Boolean() with get,set

    [<AllowNullLiteral>]
    type SitemapSettingsMessage() = 
        member val Id:Guid = new Guid() with get,set
        member val Item:SitemapSettings = null with get,set

    [<AllowNullLiteral>]
    type SitemapSettingsContext() = 
        member val Item:SitemapSettings = null with get,set

F# SitemapSettingsMessage DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /RestApi/sitefinity/sitemap/settings HTTP/1.1 
Host: www.asg.com.au 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	Item: 
	{
		IsEnabled: False,
		UrlLimit: 0,
		Compress: False,
		Condition: Daily,
		DayToStart: 0,
		TimeToStart: 0001-01-01,
		LastExecutionTime: String,
		LastError: String,
		PingGoogle: False
	}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Item: 
	{
		IsEnabled: False,
		UrlLimit: 0,
		Compress: False,
		Condition: Daily,
		DayToStart: 0,
		TimeToStart: 0001-01-01,
		LastExecutionTime: String,
		LastError: String,
		PingGoogle: False
	}
}