| PUT,OPTIONS | /v1/Rfp/Estimate/MarkupDefault |
|---|
import Foundation
import ServiceStack
public class EstimateMarkupDefaultPutRequest : Codable
{
public var ohpPct:Double?
public var crewOhpPct:Double?
public var equipmentOhpPct:Double?
public var materialOhpPct:Double?
public var subcontractOhpPct:Double?
public var rfpDocumentUID:String?
required public init(){}
}
public class EstimateMarkupDefaultResponse : Codable
{
public var responseStatus:ResponseStatus
public var markupDefault:EstimateMarkupDefaultView
required public init(){}
}
public class EstimateMarkupDefaultView : Codable
{
public var isSet:Bool
public var ohpPct:Double
public var crewOhpPct:Double?
public var equipmentOhpPct:Double?
public var materialOhpPct:Double?
public var subcontractOhpPct:Double?
public var line:String
public var sameAsEstimate:Bool
public var saveQuestion:String
required public init(){}
}
Swift EstimateMarkupDefaultPutRequest 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.
PUT /v1/Rfp/Estimate/MarkupDefault HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"OhpPct":0,"CrewOhpPct":0,"EquipmentOhpPct":0,"MaterialOhpPct":0,"SubcontractOhpPct":0,"RfpDocumentUID":"00000000000000000000000000000000"}
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"}},"MarkupDefault":{"IsSet":false,"OhpPct":0,"CrewOhpPct":0,"EquipmentOhpPct":0,"MaterialOhpPct":0,"SubcontractOhpPct":0,"Line":"String","SameAsEstimate":false,"SaveQuestion":"String"}}