| POST,OPTIONS | /v1/pursuits/{PursuitID}/award |
|---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class PursuitAwardRequest
{
open var PursuitID:Int? = 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 PursuitAwardRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/pursuits/{PursuitID}/award HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
PursuitID: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
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-01,
EstimatorRfpRef: String,
AwardedProjectID: 0,
OpenedAt: 0001-01-01,
SubmittedAt: 0001-01-01,
DecidedAt: 0001-01-01,
CreatedBy: String,
CreatedAt: 0001-01-01,
UpdatedAt: 0001-01-01,
DaysOpen: 0,
WeightedValue: 0,
Activity:
[
{
PursuitActivityID: 0,
PursuitID: 0,
Kind: String,
Label: String,
Detail: String,
Actor: String,
CreatedAt: 0001-01-01
}
]
},
AwardedProjectID: 0
}