<back to all web services

ConversionRequestDto

The following routes are available for this service:
GET/RestApi/sitefinity/data-intelligence/conversion
import java.math.*
import java.util.*
import net.servicestack.client.*


open class ConversionRequestDto
{
    var Filter:String? = null
}

open class ConversionsViewModel
{
    var Conversions:IList<Conversion>? = null
}

open class Conversion
{
    var Id:Int? = null
    var Name:String? = null
    var State:CalculationState? = null
    var InputDays:Int? = null
    var CreatedOn:Date? = null
    var ModifiedOn:Date? = null
    var CreatedByUserId:String? = null
    var ModifiedByUserId:String? = null
    var Definition:ConditionExpression? = null
    var ClientFilter:ConditionExpression? = null
    var CanBeModified:Boolean? = null
    var CanBeDeleted:Boolean? = null
    var ContentRecommendationsEnabled:Boolean? = null
    var AttributionCalculatedOn:Date? = null
    var DecisionTreeId:Int? = null
}

enum class CalculationState
{
    Inactive,
    Initializing,
    Active,
    ToBeDeleted,
    Error,
    Pending,
    Expired,
}

open class ConditionExpression
{
    var Relation:String? = null
    var Parts:IList<ConditionPart>? = null
}

open class ConditionPart
{
    var Id:Int? = null
    var Predicate:String? = null
    var IsNegated:Boolean? = null
    var PredicateOperator:MatchingOperator? = null
    var ObjectOperator:MatchingOperator? = null
    var Objects:ArrayList<String> = ArrayList<String>()
    var ClientAttribute:String? = null
    var ContactPropertyId:UUID? = null
    var ObjectMetadata:HashMap<String,String> = HashMap<String,String>()
    var UrlParameters:HashMap<String,String> = HashMap<String,String>()
}

enum class MatchingOperator
{
    ExactMatch,
    Contains,
    StartsWith,
    EndsWith,
    UrlStrippedMatch,
}

Kotlin ConversionRequestDto DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /RestApi/sitefinity/data-intelligence/conversion HTTP/1.1 
Host: www.asg.com.au 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{}