<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}
import Foundation
import ServiceStack

public class SitemapSettingsMessage : Codable
{
    public var id:String
    public var item:SitemapSettings

    required public init(){}
}

public class SitemapSettings : Codable
{
    public var isEnabled:Bool
    public var urlLimit:Int
    public var compress:Bool
    public var condition:SitemapGenerationCondition
    public var dayToStart:Int
    public var timeToStart:Date
    public var siteId:String
    public var lastExecutionTime:String
    public var lastError:String
    public var pingGoogle:Bool

    required public init(){}
}

public enum SitemapGenerationCondition : String, Codable
{
    case Daily
    case Weekly
    case Manual
}

public class SitemapSettingsContext : Codable
{
    public var item:SitemapSettings

    required public init(){}
}


Swift SitemapSettingsMessage DTOs

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

HTTP + CSV

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/csv
Content-Type: text/csv
Content-Length: length

{"Item":{"IsEnabled":false,"UrlLimit":0,"Compress":false,"Condition":"Daily","DayToStart":0,"TimeToStart":"\/Date(-62135596800000-0000)\/","LastExecutionTime":"String","LastError":"String","PingGoogle":false}}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Item":{"IsEnabled":false,"UrlLimit":0,"Compress":false,"Condition":"Daily","DayToStart":0,"TimeToStart":"\/Date(-62135596800000-0000)\/","LastExecutionTime":"String","LastError":"String","PingGoogle":false}}