| POST,OPTIONS | /v1/projects/{ProjectID}/bluebeam/import/commit |
|---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class BluebeamCommitRequest
{
open var ProjectID:Int? = null
open var FileName:String? = null
open var Rows:ArrayList<BluebeamMappedRow> = ArrayList<BluebeamMappedRow>()
open var RfpDocumentUID:UUID? = null
}
open class BluebeamMappedRow
{
open var RowNo:Int? = null
open var Target:String? = null
open var Title:String? = null
open var Description:String? = null
open var Area:String? = null
open var Trade:String? = null
open var AssignedSub:String? = null
open var Priority:String? = null
open var Quantity:Double? = null
open var QuantityKind:String? = null
open var Unit:String? = null
open var TaskSeq:Int? = null
open var Reason:String? = null
open var Source:BluebeamRow? = null
}
open class BluebeamRow
{
open var RowNo:Int? = null
open var Subject:String? = null
open var PageLabel:String? = null
open var PageIndex:Int? = null
open var Author:String? = null
open var Date:String? = null
open var Status:String? = null
open var Color:String? = null
open var Comments:String? = null
open var Label:String? = null
open var Layer:String? = null
open var Space:String? = null
open var Length:Double? = null
open var Area:Double? = null
open var Count:Double? = null
open var Volume:Double? = null
open var Measurement:String? = null
open var X:Double? = null
open var Y:Double? = null
open var Width:Double? = null
open var Height:Double? = null
open var Extras:HashMap<String,String> = HashMap<String,String>()
}
open class BluebeamCommitResponse
{
open var ResponseStatus:ResponseStatus? = null
open var Result:BluebeamCommitResult? = null
open var QuantitiesCsv:String? = null
open var QuantitiesWritten:Int? = null
}
open class BluebeamCommitResult
{
open var PunchCreated:Int? = null
open var RfisCreated:Int? = null
open var Skipped:Int? = null
open var Created:ArrayList<String> = ArrayList<String>()
open var Quantities:ArrayList<BluebeamMappedRow> = ArrayList<BluebeamMappedRow>()
open var Errors:ArrayList<String> = ArrayList<String>()
}
Kotlin BluebeamCommitRequest 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}/bluebeam/import/commit HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/json
Content-Type: application/json
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: 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"}},"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}