Trendsic Platform Service

<back to all web services

PursuitUpdateRequest

Requires Authentication
The following routes are available for this service:
PUT,OPTIONS/v1/pursuits/{PursuitID}
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class PursuitUpdateRequest
{
    open var PursuitID:Int? = null
    open var Name:String? = null
    open var ClientOwner:String? = null
    open var WorkType:String? = null
    open var Solicitation:String? = null
    open var Location:String? = null
    open var Scope:String? = null
    open var BidValue:BigDecimal? = null
    open var EstCost:BigDecimal? = null
    open var WinProbability:BigDecimal? = null
    open var CostOfPursuit:BigDecimal? = null
    open var DueDate:Date? = null
    open var EstimatorRfpRef:String? = null
}

open class PursuitResponse
{
    open var ResponseStatus:ResponseStatus? = null
    open var Pursuit:Pursuit? = null
    open var AwardedProjectID:Int? = null
}

open class Pursuit
{
    open var PursuitID:Int? = null
    open var PursuitUID:UUID? = null
    open var PursuitNumber:String? = null
    open var Name:String? = null
    open var ClientOwner:String? = null
    open var WorkType:String? = null
    open var Solicitation:String? = null
    open var Location:String? = null
    open var Scope:String? = null
    open var Stage:String? = null
    open var Outcome:String? = null
    open var BidValue:BigDecimal? = null
    open var EstCost:BigDecimal? = null
    open var WinProbability:BigDecimal? = null
    open var CostOfPursuit:BigDecimal? = null
    open var DueDate:Date? = null
    open var EstimatorRfpRef:String? = null
    open var AwardedProjectID:Int? = null
    open var OpenedAt:Date? = null
    open var SubmittedAt:Date? = null
    open var DecidedAt:Date? = null
    open var CreatedBy:String? = null
    open var CreatedAt:Date? = null
    open var UpdatedAt:Date? = null
    open var DaysOpen:Int? = null
    open var WeightedValue:BigDecimal? = null
    open var Activity:ArrayList<PursuitActivity> = ArrayList<PursuitActivity>()
}

open class PursuitActivity
{
    open var PursuitActivityID:Int? = null
    open var PursuitID:Int? = null
    open var Kind:String? = null
    open var Label:String? = null
    open var Detail:String? = null
    open var Actor:String? = null
    open var CreatedAt:Date? = null
}

Kotlin PursuitUpdateRequest 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.

PUT /v1/pursuits/{PursuitID} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"PursuitID":0,"Name":"String","ClientOwner":"String","WorkType":"String","Solicitation":"String","Location":"String","Scope":"String","BidValue":0,"EstCost":0,"WinProbability":0,"CostOfPursuit":0,"DueDate":"0001-01-01T00:00:00.0000000","EstimatorRfpRef":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Pursuit":{"PursuitID":0,"PursuitUID":"00000000000000000000000000000000","PursuitNumber":"String","Name":"String","ClientOwner":"String","WorkType":"String","Solicitation":"String","Location":"String","Scope":"String","Stage":"String","Outcome":"String","BidValue":0,"EstCost":0,"WinProbability":0,"CostOfPursuit":0,"DueDate":"0001-01-01T00:00:00.0000000","EstimatorRfpRef":"String","AwardedProjectID":0,"OpenedAt":"0001-01-01T00:00:00.0000000","SubmittedAt":"0001-01-01T00:00:00.0000000","DecidedAt":"0001-01-01T00:00:00.0000000","CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedAt":"0001-01-01T00:00:00.0000000","DaysOpen":0,"WeightedValue":0,"Activity":[{"PursuitActivityID":0,"PursuitID":0,"Kind":"String","Label":"String","Detail":"String","Actor":"String","CreatedAt":"0001-01-01T00:00:00.0000000"}]},"AwardedProjectID":0}