| POST,OPTIONS | /v1/projects/{ProjectID}/rfis/{RfiID}/promote-to-co |
|---|
"use strict";
export class Rfi {
/** @param {{RfiID?:number,RfiUID?:string,ProjectID?:number,RfiNo?:string,Subject?:string,Question?:string,Answer?:string,Discipline?:string,AskedOf?:string,Status?:string,CostImpact?:boolean,ScheduleImpact?:boolean,SubmittedDate?:string,DueDate?:string,AnsweredDate?:string,ClosedDate?:string,PromotedChangeOrderID?:number,CreatedBy?:string,CreatedAt?:string,UpdatedAt?:string,DaysOpen?:number}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
RfiID;
/** @type {string} */
RfiUID;
/** @type {number} */
ProjectID;
/** @type {string} */
RfiNo;
/** @type {string} */
Subject;
/** @type {string} */
Question;
/** @type {string} */
Answer;
/** @type {string} */
Discipline;
/** @type {string} */
AskedOf;
/** @type {string} */
Status;
/** @type {boolean} */
CostImpact;
/** @type {boolean} */
ScheduleImpact;
/** @type {?string} */
SubmittedDate;
/** @type {?string} */
DueDate;
/** @type {?string} */
AnsweredDate;
/** @type {?string} */
ClosedDate;
/** @type {?number} */
PromotedChangeOrderID;
/** @type {string} */
CreatedBy;
/** @type {?string} */
CreatedAt;
/** @type {?string} */
UpdatedAt;
/** @type {number} */
DaysOpen;
}
export class RfiPromoteToCoResponse {
/** @param {{ResponseStatus?:ResponseStatus,Rfi?:Rfi,ChangeOrderID?:number,CONumber?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {ResponseStatus} */
ResponseStatus;
/** @type {Rfi} */
Rfi;
/** @type {number} */
ChangeOrderID;
/** @type {string} */
CONumber;
}
export class RfiPromoteToCoRequest {
/** @param {{ProjectID?:number,RfiID?:number}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
ProjectID;
/** @type {number} */
RfiID;
}
JavaScript RfiPromoteToCoRequest DTOs
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.
POST /v1/projects/{ProjectID}/rfis/{RfiID}/promote-to-co HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"ProjectID":0,"RfiID":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Rfi":{"RfiID":0,"RfiUID":"00000000000000000000000000000000","ProjectID":0,"RfiNo":"String","Subject":"String","Question":"String","Answer":"String","Discipline":"String","AskedOf":"String","Status":"String","CostImpact":false,"ScheduleImpact":false,"SubmittedDate":"0001-01-01T00:00:00.0000000","DueDate":"0001-01-01T00:00:00.0000000","AnsweredDate":"0001-01-01T00:00:00.0000000","ClosedDate":"0001-01-01T00:00:00.0000000","PromotedChangeOrderID":0,"CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedAt":"0001-01-01T00:00:00.0000000","DaysOpen":0},"ChangeOrderID":0,"CONumber":"String"}