PUT | /RestApi/Sitefinity/mobile-formats/templates/change |
---|
namespace Telerik.Sitefinity.MobileFormats.Web.Services.Dto
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type MobileFormatTemplateDto() =
member val Name:String = null with get,set
member val Value:String = null with get,set
[<AllowNullLiteral>]
type ChangeTemplateInfoDto() =
member val SelectedTemplate:MobileFormatTemplateDto = null with get,set
member val SelectedLayoutTemplate:MobileFormatTemplateDto = null with get,set
member val UseCustomCanonicalUrl:Boolean = new Boolean() with get,set
member val CustomCanonicalUrlFormat:String = null with get,set
member val MobileFormatId:String = null with get,set
[<AllowNullLiteral>]
type ChangeTemplateDto() =
member val TemplatesInfo:IEnumerable<ChangeTemplateInfoDto> = null with get,set
member val SiteId:String = null with get,set
member val ContentTypeId:String = null with get,set
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
}