| POST,OPTIONS | /v1/projects/{ProjectID}/bluebeam/import/commit |
|---|
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 BluebeamCommitRequest
Public Overridable Property ProjectID As Integer
Public Overridable Property FileName As String
Public Overridable Property Rows As List(Of BluebeamMappedRow) = New List(Of BluebeamMappedRow)
Public Overridable Property RfpDocumentUID As Guid?
End Class
Public Partial Class BluebeamCommitResponse
Public Overridable Property ResponseStatus As ResponseStatus
Public Overridable Property Result As BluebeamCommitResult
Public Overridable Property QuantitiesCsv As String
Public Overridable Property QuantitiesWritten As Integer
End Class
Public Partial Class BluebeamCommitResult
Public Overridable Property PunchCreated As Integer
Public Overridable Property RfisCreated As Integer
Public Overridable Property Skipped As Integer
Public Overridable Property Created As List(Of String) = New List(Of String)
Public Overridable Property Quantities As List(Of BluebeamMappedRow) = New List(Of BluebeamMappedRow)
Public Overridable Property Errors As List(Of String) = New List(Of String)
End Class
Public Partial Class BluebeamMappedRow
Public Overridable Property RowNo As Integer
Public Overridable Property Target As String
Public Overridable Property Title As String
Public Overridable Property Description As String
Public Overridable Property Area As String
Public Overridable Property Trade As String
Public Overridable Property AssignedSub As String
Public Overridable Property Priority As String
Public Overridable Property Quantity As Double?
Public Overridable Property QuantityKind As String
Public Overridable Property Unit As String
Public Overridable Property TaskSeq As Integer?
Public Overridable Property Reason As String
Public Overridable Property Source As BluebeamRow
End Class
Public Partial Class BluebeamRow
Public Overridable Property RowNo As Integer
Public Overridable Property Subject As String
Public Overridable Property PageLabel As String
Public Overridable Property PageIndex As Integer?
Public Overridable Property Author As String
Public Overridable Property [Date] As String
Public Overridable Property Status As String
Public Overridable Property Color As String
Public Overridable Property Comments As String
Public Overridable Property Label As String
Public Overridable Property Layer As String
Public Overridable Property Space As String
Public Overridable Property Length As Double?
Public Overridable Property Area As Double?
Public Overridable Property Count As Double?
Public Overridable Property Volume As Double?
Public Overridable Property Measurement As String
Public Overridable Property X As Double?
Public Overridable Property Y As Double?
Public Overridable Property Width As Double?
Public Overridable Property Height As Double?
Public Overridable Property Extras As Dictionary(Of String, String) = New Dictionary(Of String, String)
End Class
End Namespace
End Namespace
VB.NET BluebeamCommitRequest 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/projects/{ProjectID}/bluebeam/import/commit HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"ProjectID":0,"FileName":"String","Rows":[{"RowNo":0,"Target":"String","Title":"String","Description":"String","Area":"String","Trade":"String","AssignedSub":"String","Priority":"String","Quantity":0,"QuantityKind":"String","Unit":"String","TaskSeq":0,"Reason":"String","Source":{"RowNo":0,"Subject":"String","PageLabel":"String","PageIndex":0,"Author":"String","Date":"String","Status":"String","Color":"String","Comments":"String","Label":"String","Layer":"String","Space":"String","Length":0,"Area":0,"Count":0,"Volume":0,"Measurement":"String","X":0,"Y":0,"Width":0,"Height":0,"Extras":{"String":"String"}}}],"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"}},"Result":{"PunchCreated":0,"RfisCreated":0,"Skipped":0,"Created":["String"],"Quantities":[{"RowNo":0,"Target":"String","Title":"String","Description":"String","Area":"String","Trade":"String","AssignedSub":"String","Priority":"String","Quantity":0,"QuantityKind":"String","Unit":"String","TaskSeq":0,"Reason":"String","Source":{"RowNo":0,"Subject":"String","PageLabel":"String","PageIndex":0,"Author":"String","Date":"String","Status":"String","Color":"String","Comments":"String","Label":"String","Layer":"String","Space":"String","Length":0,"Area":0,"Count":0,"Volume":0,"Measurement":"String","X":0,"Y":0,"Width":0,"Height":0,"Extras":{"String":"String"}}}],"Errors":["String"]},"QuantitiesCsv":"String","QuantitiesWritten":0}