| Requires any of the roles: | Agent, Administrator |
| POST,OPTIONS | /v1/Rfp/{RfpDocumentUID}/Refine |
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal
Namespace Global
Namespace CRM.AgencyPlatform.API.Internal
Public Partial Class CostRange
Public Overridable Property Min As Double
Public Overridable Property Max As Double
Public Overridable Property Mid As Double
End Class
Public Partial Class CrewPlanLine
Public Overridable Property PositionTag As String
Public Overridable Property Needed As Integer
Public Overridable Property NaiveTotal As Integer
Public Overridable Property TaskAssignments As Integer
End Class
Public Partial Class PricedEquipment
Public Overridable Property EquipmentID As Integer
Public Overridable Property EquipmentName As String
Public Overridable Property Quantity As Double
Public Overridable Property DurationDays As Double?
Public Overridable Property RateType As String
Public Overridable Property BilledRate As Double?
Public Overridable Property CostRate As Double?
Public Overridable Property HasRate As Boolean
Public Overridable Property IsInCatalog As Boolean
Public Overridable Property Cost As Double
Public Overridable Property CompanyCost As Double
Public Overridable Property Margin As Double
End Class
Public Partial Class PricedMaterial
Public Overridable Property MaterialID As Integer
Public Overridable Property MaterialName As String
Public Overridable Property Quantity As Double
Public Overridable Property UnitCost As Double?
Public Overridable Property HasRate As Boolean
Public Overridable Property IsInCatalog As Boolean
Public Overridable Property Cost As Double
End Class
Public Partial Class PricedPosition
Public Overridable Property PositionTag As String
Public Overridable Property Hours As Double
Public Overridable Property HasInternalRate As Boolean
Public Overridable Property RateMin As Double?
Public Overridable Property RateMax As Double?
Public Overridable Property RateAvg As Double?
Public Overridable Property ContactCount As Integer
Public Overridable Property Cost As CostRange
Public Overridable Property MarketRateReference As Double?
End Class
Public Partial Class PricedProposal
Public Overridable Property RfpDocumentID As Integer
Public Overridable Property ProjectName As String
Public Overridable Property Currency As String
Public Overridable Property Tasks As List(Of PricedTask) = New List(Of PricedTask)
Public Overridable Property Total As CostRange
Public Overridable Property PositionsNeedingRate As Integer
Public Overridable Property EquipmentNotInCatalog As Integer
Public Overridable Property MaterialsNotInCatalog As Integer
Public Overridable Property PositionsNotInCatalog As Integer
Public Overridable Property EquipmentMargin As Double
End Class
Public Partial Class PricedTask
Public Overridable Property Name As String
Public Overridable Property Category As String
Public Overridable Property Positions As List(Of PricedPosition) = New List(Of PricedPosition)
Public Overridable Property Equipment As List(Of PricedEquipment) = New List(Of PricedEquipment)
Public Overridable Property Materials As List(Of PricedMaterial) = New List(Of PricedMaterial)
Public Overridable Property Subtotal As CostRange
End Class
Public Partial Class ProjectProposal
Public Overridable Property RfpDocumentID As Integer
Public Overridable Property Mode As String
Public Overridable Property ProjectID As Integer?
Public Overridable Property ChangeOrderID As Integer?
Public Overridable Property ProjectName As String
Public Overridable Property ClientName As String
Public Overridable Property ProjectType As String
Public Overridable Property ProjectLocation As String
Public Overridable Property Scope As String
Public Overridable Property ProjectDescription As String
Public Overridable Property ContractDurationDays As Integer?
Public Overridable Property BidDueDate As String
Public Overridable Property EstimatedStartDate As Date?
Public Overridable Property EstimatedEndDate As Date?
Public Overridable Property Tasks As List(Of ProposedTask) = New List(Of ProposedTask)
End Class
Public Partial Class ProposedTask
Public Overridable Property Seq As Integer
Public Overridable Property Name As String
Public Overridable Property Category As String
Public Overridable Property Quantity As Double?
Public Overridable Property Unit As String
Public Overridable Property SourceItemNumber As String
Public Overridable Property SourceReference As String
Public Overridable Property Notes As String
Public Overridable Property Resourcing As TaskResourcing
Public Overridable Property DurationDays As Double?
Public Overridable Property DependsOn As List(Of Integer) = New List(Of Integer)
Public Overridable Property EstimatedStartDate As Date?
Public Overridable Property EstimatedEndDate As Date?
End Class
Public Partial Class ResourcedEquipment
Public Overridable Property EquipmentID As Integer
Public Overridable Property EquipmentName As String
Public Overridable Property MakeModel As String
Public Overridable Property Quantity As Double?
Public Overridable Property DurationDays As Double?
Public Overridable Property SourceReference As String
Public Overridable Property Notes As String
Public Overridable Property IsInCatalog As Boolean
Public Overridable Property SuggestedEquipmentID As Integer
Public Overridable Property SuggestedEquipmentName As String
End Class
Public Partial Class ResourcedMaterial
Public Overridable Property MaterialID As Integer
Public Overridable Property MaterialName As String
Public Overridable Property MakeModel As String
Public Overridable Property Quantity As Double?
Public Overridable Property Unit As String
Public Overridable Property SourceReference As String
Public Overridable Property Notes As String
Public Overridable Property IsInCatalog As Boolean
Public Overridable Property SuggestedMaterialID As Integer
Public Overridable Property SuggestedMaterialName As String
End Class
Public Partial Class ResourcedPosition
Public Overridable Property PositionTag As String
Public Overridable Property Hours As Double?
Public Overridable Property Headcount As Integer?
Public Overridable Property SourceReference As String
Public Overridable Property Notes As String
Public Overridable Property IsInCatalog As Boolean
Public Overridable Property ContactID As Integer?
End Class
Public Partial Class RfpBidConstraint
Public Overridable Property Constraint As String
Public Overridable Property Detail As String
End Class
Public Partial Class RfpBrief
Public Overridable Property ProjectTitle As String
Public Overridable Property SolicitationNumber As String
Public Overridable Property IssuingOrganization As String
Public Overridable Property ProjectType As String
Public Overridable Property Summary As String
Public Overridable Property Locations As List(Of RfpLocation) = New List(Of RfpLocation)
Public Overridable Property Schedule As RfpSchedule
Public Overridable Property LineItems As List(Of RfpLineItem) = New List(Of RfpLineItem)
Public Overridable Property BidConstraints As List(Of RfpBidConstraint) = New List(Of RfpBidConstraint)
Public Overridable Property SpecialRequirements As List(Of String) = New List(Of String)
End Class
Public Partial Class RfpLineItem
Public Overridable Property ItemNumber As String
Public Overridable Property Description As String
Public Overridable Property Quantity As Double?
Public Overridable Property Unit As String
Public Overridable Property Category As String
Public Overridable Property SourceReference As String
End Class
Public Partial Class RfpLocation
Public Overridable Property Description As String
Public Overridable Property City As String
Public Overridable Property State As String
Public Overridable Property Identifier As String
End Class
Public Partial Class RfpRefineRequest
Public Overridable Property RfpDocumentUID As String
Public Overridable Property Layer As String
Public Overridable Property Mode As String
Public Overridable Property Instruction As String
End Class
Public Partial Class RfpRefineResponse
Public Overridable Property ResponseStatus As ResponseStatus
Public Overridable Property RfpDocumentID As Integer
Public Overridable Property Layer As String
Public Overridable Property Mode As String
Public Overridable Property TurnCount As Integer
Public Overridable Property Brief As RfpBrief
Public Overridable Property Proposal As ProjectProposal
Public Overridable Property Pricing As PricedProposal
Public Overridable Property CrewPlan As List(Of CrewPlanLine) = New List(Of CrewPlanLine)
Public Overridable Property CacheReadTokens As Long
Public Overridable Property CacheCreationTokens As Long
Public Overridable Property InputTokens As Long
End Class
Public Partial Class RfpSchedule
Public Overridable Property BidDueDate As String
Public Overridable Property EstimatedStartDate As String
Public Overridable Property QuestionsDueDate As String
Public Overridable Property ContractDurationDays As Integer?
Public Overridable Property Notes As String
End Class
Public Partial Class TaskResourcing
Public Overridable Property Positions As List(Of ResourcedPosition) = New List(Of ResourcedPosition)
Public Overridable Property Equipment As List(Of ResourcedEquipment) = New List(Of ResourcedEquipment)
Public Overridable Property Materials As List(Of ResourcedMaterial) = New List(Of ResourcedMaterial)
End Class
End Namespace
End Namespace
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/Rfp/{RfpDocumentUID}/Refine HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<RfpRefineRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<Instruction>String</Instruction>
<Layer>String</Layer>
<Mode>String</Mode>
<RfpDocumentUID>String</RfpDocumentUID>
</RfpRefineRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<RfpRefineResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<Brief>
<BidConstraints>
<RfpBidConstraint>
<Constraint>String</Constraint>
<Detail>String</Detail>
</RfpBidConstraint>
</BidConstraints>
<IssuingOrganization>String</IssuingOrganization>
<LineItems>
<RfpLineItem>
<Category>String</Category>
<Description>String</Description>
<ItemNumber>String</ItemNumber>
<Quantity>0</Quantity>
<SourceReference>String</SourceReference>
<Unit>String</Unit>
</RfpLineItem>
</LineItems>
<Locations>
<RfpLocation>
<City>String</City>
<Description>String</Description>
<Identifier>String</Identifier>
<State>String</State>
</RfpLocation>
</Locations>
<ProjectTitle>String</ProjectTitle>
<ProjectType>String</ProjectType>
<Schedule>
<BidDueDate>String</BidDueDate>
<ContractDurationDays>0</ContractDurationDays>
<EstimatedStartDate>String</EstimatedStartDate>
<Notes>String</Notes>
<QuestionsDueDate>String</QuestionsDueDate>
</Schedule>
<SolicitationNumber>String</SolicitationNumber>
<SpecialRequirements xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:string>String</d3p1:string>
</SpecialRequirements>
<Summary>String</Summary>
</Brief>
<CacheCreationTokens>0</CacheCreationTokens>
<CacheReadTokens>0</CacheReadTokens>
<CrewPlan>
<CrewPlanLine>
<NaiveTotal>0</NaiveTotal>
<Needed>0</Needed>
<PositionTag>String</PositionTag>
<TaskAssignments>0</TaskAssignments>
</CrewPlanLine>
</CrewPlan>
<InputTokens>0</InputTokens>
<Layer>String</Layer>
<Mode>String</Mode>
<Pricing>
<Currency>String</Currency>
<EquipmentMargin>0</EquipmentMargin>
<EquipmentNotInCatalog>0</EquipmentNotInCatalog>
<MaterialsNotInCatalog>0</MaterialsNotInCatalog>
<PositionsNeedingRate>0</PositionsNeedingRate>
<PositionsNotInCatalog>0</PositionsNotInCatalog>
<ProjectName>String</ProjectName>
<RfpDocumentID>0</RfpDocumentID>
<Tasks>
<PricedTask>
<Category>String</Category>
<Equipment>
<PricedEquipment>
<BilledRate>0</BilledRate>
<CompanyCost>0</CompanyCost>
<Cost>0</Cost>
<CostRate>0</CostRate>
<DurationDays>0</DurationDays>
<EquipmentID>0</EquipmentID>
<EquipmentName>String</EquipmentName>
<HasRate>false</HasRate>
<IsInCatalog>false</IsInCatalog>
<Quantity>0</Quantity>
<RateType>String</RateType>
</PricedEquipment>
</Equipment>
<Materials>
<PricedMaterial>
<Cost>0</Cost>
<HasRate>false</HasRate>
<IsInCatalog>false</IsInCatalog>
<MaterialID>0</MaterialID>
<MaterialName>String</MaterialName>
<Quantity>0</Quantity>
<UnitCost>0</UnitCost>
</PricedMaterial>
</Materials>
<Name>String</Name>
<Positions>
<PricedPosition>
<ContactCount>0</ContactCount>
<Cost>
<Max>0</Max>
<Min>0</Min>
</Cost>
<HasInternalRate>false</HasInternalRate>
<Hours>0</Hours>
<MarketRateReference>0</MarketRateReference>
<PositionTag>String</PositionTag>
<RateAvg>0</RateAvg>
<RateMax>0</RateMax>
<RateMin>0</RateMin>
</PricedPosition>
</Positions>
<Subtotal>
<Max>0</Max>
<Min>0</Min>
</Subtotal>
</PricedTask>
</Tasks>
<Total>
<Max>0</Max>
<Min>0</Min>
</Total>
</Pricing>
<Proposal>
<BidDueDate>String</BidDueDate>
<ChangeOrderID>0</ChangeOrderID>
<ClientName>String</ClientName>
<ContractDurationDays>0</ContractDurationDays>
<EstimatedEndDate>0001-01-01T00:00:00</EstimatedEndDate>
<EstimatedStartDate>0001-01-01T00:00:00</EstimatedStartDate>
<Mode>String</Mode>
<ProjectDescription>String</ProjectDescription>
<ProjectID>0</ProjectID>
<ProjectLocation>String</ProjectLocation>
<ProjectName>String</ProjectName>
<ProjectType>String</ProjectType>
<RfpDocumentID>0</RfpDocumentID>
<Scope>String</Scope>
<Tasks>
<ProposedTask>
<Category>String</Category>
<DependsOn xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:int>0</d5p1:int>
</DependsOn>
<DurationDays>0</DurationDays>
<EstimatedEndDate>0001-01-01T00:00:00</EstimatedEndDate>
<EstimatedStartDate>0001-01-01T00:00:00</EstimatedStartDate>
<Name>String</Name>
<Notes>String</Notes>
<Quantity>0</Quantity>
<Resourcing>
<Equipment>
<ResourcedEquipment>
<DurationDays>0</DurationDays>
<EquipmentID>0</EquipmentID>
<EquipmentName>String</EquipmentName>
<IsInCatalog>false</IsInCatalog>
<MakeModel>String</MakeModel>
<Notes>String</Notes>
<Quantity>0</Quantity>
<SourceReference>String</SourceReference>
<SuggestedEquipmentID>0</SuggestedEquipmentID>
<SuggestedEquipmentName>String</SuggestedEquipmentName>
</ResourcedEquipment>
</Equipment>
<Materials>
<ResourcedMaterial>
<IsInCatalog>false</IsInCatalog>
<MakeModel>String</MakeModel>
<MaterialID>0</MaterialID>
<MaterialName>String</MaterialName>
<Notes>String</Notes>
<Quantity>0</Quantity>
<SourceReference>String</SourceReference>
<SuggestedMaterialID>0</SuggestedMaterialID>
<SuggestedMaterialName>String</SuggestedMaterialName>
<Unit>String</Unit>
</ResourcedMaterial>
</Materials>
<Positions>
<ResourcedPosition>
<ContactID>0</ContactID>
<Headcount>0</Headcount>
<Hours>0</Hours>
<IsInCatalog>false</IsInCatalog>
<Notes>String</Notes>
<PositionTag>String</PositionTag>
<SourceReference>String</SourceReference>
</ResourcedPosition>
</Positions>
</Resourcing>
<Seq>0</Seq>
<SourceItemNumber>String</SourceItemNumber>
<SourceReference>String</SourceReference>
<Unit>String</Unit>
</ProposedTask>
</Tasks>
</Proposal>
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
<RfpDocumentID>0</RfpDocumentID>
<TurnCount>0</TurnCount>
</RfpRefineResponse>