<back to all web services

ChangeTemplateDto

The following routes are available for this service:
PUT/RestApi/Sitefinity/mobile-formats/templates/change
"use strict";
export class MobileFormatTemplateDto {
    /** @param {{Name?:string,Value?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    Name;
    /** @type {string} */
    Value;
}
export class ChangeTemplateInfoDto {
    /** @param {{SelectedTemplate?:MobileFormatTemplateDto,SelectedLayoutTemplate?:MobileFormatTemplateDto,UseCustomCanonicalUrl?:boolean,CustomCanonicalUrlFormat?:string,MobileFormatId?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {MobileFormatTemplateDto} */
    SelectedTemplate;
    /** @type {MobileFormatTemplateDto} */
    SelectedLayoutTemplate;
    /** @type {boolean} */
    UseCustomCanonicalUrl;
    /** @type {string} */
    CustomCanonicalUrlFormat;
    /** @type {string} */
    MobileFormatId;
}
export class ChangeTemplateDto {
    /** @param {{TemplatesInfo?:ChangeTemplateInfoDto[],SiteId?:string,ContentTypeId?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {ChangeTemplateInfoDto[]} */
    TemplatesInfo;
    /** @type {string} */
    SiteId;
    /** @type {string} */
    ContentTypeId;
}

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