<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}

export enum SitemapGenerationCondition
{
    Daily = 'Daily',
    Weekly = 'Weekly',
    Manual = 'Manual',
}

export class SitemapSettings
{
    public IsEnabled: boolean;
    public UrlLimit: number;
    public Compress: boolean;
    public Condition: SitemapGenerationCondition;
    public DayToStart: number;
    public TimeToStart: string;
    public SiteId: string;
    public LastExecutionTime: string;
    public LastError: string;
    public PingGoogle: boolean;

    public constructor(init?: Partial<SitemapSettings>) { (Object as any).assign(this, init); }
}

export class SitemapSettingsMessage
{
    public Id: string;
    public Item: SitemapSettings;

    public constructor(init?: Partial<SitemapSettingsMessage>) { (Object as any).assign(this, init); }
}

export class SitemapSettingsContext
{
    public Item: SitemapSettings;

    public constructor(init?: Partial<SitemapSettingsContext>) { (Object as any).assign(this, init); }
}

TypeScript SitemapSettingsMessage DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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: application/json
Content-Type: application/json
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: application/json
Content-Length: length

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