GET | /RestApi/sitefinity/data-intelligence/contact-properties |
---|
import java.math.*
import java.util.*
import net.servicestack.client.*
open class ContactPropertiesRequestDto
{
var Filter:String? = null
}
open class ContactPropertiesViewModel
{
var ContactProperties:IList<ContactProperty>? = null
var DecAppUrl:String? = null
}
open class ContactProperty
{
var Id:UUID? = null
var DatacenterId:UUID? = null
var IsIdentifier:Boolean? = null
var IsIndexed:Boolean? = null
var DataVolumeRank:Int? = null
var Order:Double? = null
var Name:String? = null
var ColumnName:String? = null
var TableName:String? = null
var State:ContactPropertyState? = null
var DataType:Int? = null
var Aliases:IList<ContactPropertyAlias>? = null
}
enum class ContactPropertyState(val value:Int)
{
Initialized(1),
Processing(2),
Active(3),
Updated(4),
Deleted(5),
Error(6),
HiddenInUI(7),
}
open class ContactPropertyAlias
{
var Id:UUID? = null
var PropId:UUID? = null
var Name:String? = null
var Priority:Double? = null
}
Kotlin ContactPropertiesRequestDto 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.
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"}