<back to all web services

ToggleMobileFormatsContentTypesDto

The following routes are available for this service:
PUT/RestApi/Sitefinity/mobile-formats/content-types/toggle
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class ToggleMobileFormatsContentTypesDto
    {
        public String SiteId = null;
        public ArrayList<MobileFormatContentTypeDto> MobileFormatContentTypes = null;
        
        public String getSiteId() { return SiteId; }
        public ToggleMobileFormatsContentTypesDto setSiteId(String value) { this.SiteId = value; return this; }
        public ArrayList<MobileFormatContentTypeDto> getMobileFormatContentTypes() { return MobileFormatContentTypes; }
        public ToggleMobileFormatsContentTypesDto setMobileFormatContentTypes(ArrayList<MobileFormatContentTypeDto> value) { this.MobileFormatContentTypes = value; return this; }
    }

    public static class MobileFormatContentTypeDto
    {
        public String ContentTypeDisplayName = null;
        public String ContentTypeName = null;
        public String ContentTypeFullname = null;
        public Boolean Active = null;
        
        public String getContentTypeDisplayName() { return ContentTypeDisplayName; }
        public MobileFormatContentTypeDto setContentTypeDisplayName(String value) { this.ContentTypeDisplayName = value; return this; }
        public String getContentTypeName() { return ContentTypeName; }
        public MobileFormatContentTypeDto setContentTypeName(String value) { this.ContentTypeName = value; return this; }
        public String getContentTypeFullname() { return ContentTypeFullname; }
        public MobileFormatContentTypeDto setContentTypeFullname(String value) { this.ContentTypeFullname = value; return this; }
        public Boolean isActive() { return Active; }
        public MobileFormatContentTypeDto setActive(Boolean value) { this.Active = value; return this; }
    }

}

Java ToggleMobileFormatsContentTypesDto DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + 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"}