<back to all web services

ToggleMobileFormatsContentTypesDto

The following routes are available for this service:
PUT/RestApi/Sitefinity/mobile-formats/content-types/toggle
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class MobileFormatContentTypeDto:
    content_type_display_name: Optional[str] = None
    content_type_name: Optional[str] = None
    content_type_fullname: Optional[str] = None
    active: bool = False


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class ToggleMobileFormatsContentTypesDto:
    site_id: Optional[str] = None
    mobile_format_content_types: Optional[List[MobileFormatContentTypeDto]] = None

Python ToggleMobileFormatsContentTypesDto DTOs

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

HTTP + OTHER

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/jsonl
Content-Type: text/jsonl
Content-Length: length

{"SiteId":"String"}