<back to all web services

LeadScoreRequestDto

The following routes are available for this service:
GET/RestApi/sitefinity/data-intelligence/leadscore
import Foundation
import ServiceStack

public class LeadScoreRequestDto : Codable
{
    public var filter:String

    required public init(){}
}

public class LeadScoreListViewModel : Codable
{
    public var leadScores:IList<LeadScore>
    public var decAppUrl:String

    required public init(){}
}

public class LeadScore : Codable
{
    public var id:Int
    public var name:String
    public var state:LeadScoreState
    public var levels:IList<LeadScoreLevel>
    public var fields:[String:String] = [:]
    public var createdOn:Date?
    public var createdByUserId:String
    public var modifiedOn:Date?
    public var modifiedByUserId:String
    public var toBeReinitializedAt:Date?

    required public init(){}
}

public enum LeadScoreState : String, Codable
{
    case Inactive
    case Active
    case ToBeDeleted
}

public class LeadScoreLevel : Codable
{
    public var id:Int
    public var name:String
    public var threshold:Int
    public var sendNotification:Bool
    public var email:String

    required public init(){}
}


Swift LeadScoreRequestDto DTOs

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

HTTP + JSV

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

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

{
	DecAppUrl: String
}