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 .jsv suffix or ?format=jsv
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: text/jsv
Content-Type: text/jsv
Content-Length: length
{
SiteId: String,
ContentTypeId: String
}