PUT | /RestApi/Sitefinity/mobile-formats/content-types/toggle |
---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Telerik.Sitefinity.MobileFormats.Web.Services.Dto
Namespace Global
Namespace Telerik.Sitefinity.MobileFormats.Web.Services.Dto
Public Partial Class MobileFormatContentTypeDto
Public Overridable Property ContentTypeDisplayName As String
Public Overridable Property ContentTypeName As String
Public Overridable Property ContentTypeFullname As String
Public Overridable Property Active As Boolean
End Class
Public Partial Class ToggleMobileFormatsContentTypesDto
Public Overridable Property SiteId As String
Public Overridable Property MobileFormatContentTypes As IEnumerable(Of MobileFormatContentTypeDto)
End Class
End Namespace
End Namespace
VB.NET ToggleMobileFormatsContentTypesDto DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /RestApi/Sitefinity/mobile-formats/content-types/toggle HTTP/1.1
Host: www.asg.com.au
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"SiteId":"String"}