GET | /RestApi/sitefinity/data-intelligence/leadscore |
---|
namespace Telerik.DigitalExperienceCloud.Client
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type LeadScoreRequestDto() =
member val Filter:String = null with get,set
type LeadScoreState =
| Inactive = 0
| Active = 1
| ToBeDeleted = 2
[<AllowNullLiteral>]
type LeadScoreLevel() =
member val Id:Int32 = new Int32() with get,set
member val Name:String = null with get,set
member val Threshold:Int32 = new Int32() with get,set
member val SendNotification:Boolean = new Boolean() with get,set
member val Email:String = null with get,set
[<AllowNullLiteral>]
type LeadScore() =
member val Id:Int32 = new Int32() with get,set
member val Name:String = null with get,set
member val State:LeadScoreState = new LeadScoreState() with get,set
member val Levels:IList<LeadScoreLevel> = null with get,set
member val Fields:IDictionary<String, String> = null with get,set
member val CreatedOn:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val CreatedByUserId:String = null with get,set
member val ModifiedOn:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val ModifiedByUserId:String = null with get,set
member val ToBeReinitializedAt:Nullable<DateTime> = new Nullable<DateTime>() with get,set
[<AllowNullLiteral>]
type LeadScoreListViewModel() =
member val LeadScores:IList<LeadScore> = null with get,set
member val DecAppUrl:String = null with get,set
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
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: application/json
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"DecAppUrl":"String"}