<back to all web services

ContactPropertiesRequestDto

The following routes are available for this service:
GET/RestApi/sitefinity/data-intelligence/contact-properties
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 ContactPropertiesRequestDto:
    filter: Optional[str] = None


class ContactPropertyState(IntEnum):
    INITIALIZED = 1
    PROCESSING = 2
    ACTIVE = 3
    UPDATED = 4
    DELETED = 5
    ERROR = 6
    HIDDEN_IN_U_I = 7


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class ContactPropertyAlias:
    id: Optional[str] = None
    prop_id: Optional[str] = None
    name: Optional[str] = None
    priority: float = 0.0


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class ContactProperty:
    id: Optional[str] = None
    datacenter_id: Optional[str] = None
    is_identifier: bool = False
    is_indexed: bool = False
    data_volume_rank: Optional[int] = None
    order: float = 0.0
    name: Optional[str] = None
    column_name: Optional[str] = None
    table_name: Optional[str] = None
    state: Optional[ContactPropertyState] = None
    data_type: int = 0
    aliases: Optional[IList[ContactPropertyAlias]] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class ContactPropertiesViewModel:
    contact_properties: Optional[IList[ContactProperty]] = None
    dec_app_url: Optional[str] = None

Python ContactPropertiesRequestDto 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.

GET /RestApi/sitefinity/data-intelligence/contact-properties HTTP/1.1 
Host: www.asg.com.au 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"DecAppUrl":"String"}