| POST,OPTIONS | /v1/pursuits/{PursuitID}/stage |
|---|
"use strict";
export class PursuitActivity {
/** @param {{PursuitActivityID?:number,PursuitID?:number,Kind?:string,Label?:string,Detail?:string,Actor?:string,CreatedAt?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
PursuitActivityID;
/** @type {number} */
PursuitID;
/** @type {string} */
Kind;
/** @type {string} */
Label;
/** @type {string} */
Detail;
/** @type {string} */
Actor;
/** @type {?string} */
CreatedAt;
}
export class Pursuit {
/** @param {{PursuitID?:number,PursuitUID?:string,PursuitNumber?:string,Name?:string,ClientOwner?:string,WorkType?:string,Solicitation?:string,Location?:string,Scope?:string,Stage?:string,Outcome?:string,BidValue?:number,EstCost?:number,WinProbability?:number,CostOfPursuit?:number,DueDate?:string,EstimatorRfpRef?:string,AwardedProjectID?:number,OpenedAt?:string,SubmittedAt?:string,DecidedAt?:string,CreatedBy?:string,CreatedAt?:string,UpdatedAt?:string,DaysOpen?:number,WeightedValue?:number,Activity?:PursuitActivity[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
PursuitID;
/** @type {string} */
PursuitUID;
/** @type {string} */
PursuitNumber;
/** @type {string} */
Name;
/** @type {string} */
ClientOwner;
/** @type {string} */
WorkType;
/** @type {string} */
Solicitation;
/** @type {string} */
Location;
/** @type {string} */
Scope;
/** @type {string} */
Stage;
/** @type {string} */
Outcome;
/** @type {number} */
BidValue;
/** @type {number} */
EstCost;
/** @type {number} */
WinProbability;
/** @type {number} */
CostOfPursuit;
/** @type {?string} */
DueDate;
/** @type {string} */
EstimatorRfpRef;
/** @type {?number} */
AwardedProjectID;
/** @type {?string} */
OpenedAt;
/** @type {?string} */
SubmittedAt;
/** @type {?string} */
DecidedAt;
/** @type {string} */
CreatedBy;
/** @type {?string} */
CreatedAt;
/** @type {?string} */
UpdatedAt;
/** @type {number} */
DaysOpen;
/** @type {number} */
WeightedValue;
/** @type {PursuitActivity[]} */
Activity = [];
}
export class PursuitResponse {
/** @param {{ResponseStatus?:ResponseStatus,Pursuit?:Pursuit,AwardedProjectID?:number}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {ResponseStatus} */
ResponseStatus;
/** @type {Pursuit} */
Pursuit;
/** @type {?number} */
AwardedProjectID;
}
export class PursuitSetStageRequest {
/** @param {{PursuitID?:number,Stage?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
PursuitID;
/** @type {string} */
Stage;
}
JavaScript PursuitSetStageRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/pursuits/{PursuitID}/stage HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"PursuitID":0,"Stage":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
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}