<back to all web services

ChangeTemplateDto

The following routes are available for this service:
PUT/RestApi/Sitefinity/mobile-formats/templates/change

export class MobileFormatTemplateDto
{
    public Name: string;
    public Value: string;

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

export class ChangeTemplateInfoDto
{
    public SelectedTemplate: MobileFormatTemplateDto;
    public SelectedLayoutTemplate: MobileFormatTemplateDto;
    public UseCustomCanonicalUrl: boolean;
    public CustomCanonicalUrlFormat: string;
    public MobileFormatId: string;

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

export class ChangeTemplateDto
{
    public TemplatesInfo: ChangeTemplateInfoDto[];
    public SiteId: string;
    public ContentTypeId: string;

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

TypeScript ChangeTemplateDto 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.

PUT /RestApi/Sitefinity/mobile-formats/templates/change HTTP/1.1 
Host: www.asg.com.au 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"SiteId":"String","ContentTypeId":"String"}