| PUT,OPTIONS | /v1/Rfp/Estimate/MarkupDefault |
|---|
"use strict";
export class EstimateMarkupDefaultView {
/** @param {{IsSet?:boolean,OhpPct?:number,CrewOhpPct?:number,EquipmentOhpPct?:number,MaterialOhpPct?:number,SubcontractOhpPct?:number,Line?:string,SameAsEstimate?:boolean,SaveQuestion?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {boolean} */
IsSet;
/** @type {number} */
OhpPct;
/** @type {?number} */
CrewOhpPct;
/** @type {?number} */
EquipmentOhpPct;
/** @type {?number} */
MaterialOhpPct;
/** @type {?number} */
SubcontractOhpPct;
/** @type {string} */
Line;
/** @type {boolean} */
SameAsEstimate;
/** @type {string} */
SaveQuestion;
}
export class EstimateMarkupDefaultResponse {
/** @param {{ResponseStatus?:ResponseStatus,MarkupDefault?:EstimateMarkupDefaultView}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {ResponseStatus} */
ResponseStatus;
/** @type {EstimateMarkupDefaultView} */
MarkupDefault;
}
export class EstimateMarkupDefaultPutRequest {
/** @param {{OhpPct?:number,CrewOhpPct?:number,EquipmentOhpPct?:number,MaterialOhpPct?:number,SubcontractOhpPct?:number,RfpDocumentUID?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {?number} */
OhpPct;
/** @type {?number} */
CrewOhpPct;
/** @type {?number} */
EquipmentOhpPct;
/** @type {?number} */
MaterialOhpPct;
/** @type {?number} */
SubcontractOhpPct;
/** @type {?string} */
RfpDocumentUID;
}
JavaScript EstimateMarkupDefaultPutRequest 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.
PUT /v1/Rfp/Estimate/MarkupDefault HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
OhpPct: 0,
CrewOhpPct: 0,
EquipmentOhpPct: 0,
MaterialOhpPct: 0,
SubcontractOhpPct: 0,
RfpDocumentUID: 00000000000000000000000000000000
}
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
}
},
MarkupDefault:
{
IsSet: False,
OhpPct: 0,
CrewOhpPct: 0,
EquipmentOhpPct: 0,
MaterialOhpPct: 0,
SubcontractOhpPct: 0,
Line: String,
SameAsEstimate: False,
SaveQuestion: String
}
}