Trendsic Platform Service

<back to all web services

BluebeamCommitRequest

Requires Authentication
The following routes are available for this service:
POST,OPTIONS/v1/projects/{ProjectID}/bluebeam/import/commit
"use strict";
export class BluebeamRow {
    /** @param {{RowNo?:number,Subject?:string,PageLabel?:string,PageIndex?:number,Author?:string,Date?:string,Status?:string,Color?:string,Comments?:string,Label?:string,Layer?:string,Space?:string,Length?:number,Area?:number,Count?:number,Volume?:number,Measurement?:string,X?:number,Y?:number,Width?:number,Height?:number,Extras?:{ [index:string]: string; }}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    RowNo;
    /** @type {string} */
    Subject;
    /** @type {string} */
    PageLabel;
    /** @type {?number} */
    PageIndex;
    /** @type {string} */
    Author;
    /** @type {string} */
    Date;
    /** @type {string} */
    Status;
    /** @type {string} */
    Color;
    /** @type {string} */
    Comments;
    /** @type {string} */
    Label;
    /** @type {string} */
    Layer;
    /** @type {string} */
    Space;
    /** @type {?number} */
    Length;
    /** @type {?number} */
    Area;
    /** @type {?number} */
    Count;
    /** @type {?number} */
    Volume;
    /** @type {string} */
    Measurement;
    /** @type {?number} */
    X;
    /** @type {?number} */
    Y;
    /** @type {?number} */
    Width;
    /** @type {?number} */
    Height;
    /** @type {{ [index:string]: string; }} */
    Extras = {};
}
export class BluebeamMappedRow {
    /** @param {{RowNo?:number,Target?:string,Title?:string,Description?:string,Area?:string,Trade?:string,AssignedSub?:string,Priority?:string,Quantity?:number,QuantityKind?:string,Unit?:string,TaskSeq?:number,Reason?:string,Source?:BluebeamRow}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    RowNo;
    /** @type {string} */
    Target;
    /** @type {string} */
    Title;
    /** @type {string} */
    Description;
    /** @type {string} */
    Area;
    /** @type {string} */
    Trade;
    /** @type {string} */
    AssignedSub;
    /** @type {string} */
    Priority;
    /** @type {?number} */
    Quantity;
    /** @type {string} */
    QuantityKind;
    /** @type {string} */
    Unit;
    /** @type {?number} */
    TaskSeq;
    /** @type {string} */
    Reason;
    /** @type {BluebeamRow} */
    Source;
}
export class BluebeamCommitResult {
    /** @param {{PunchCreated?:number,RfisCreated?:number,Skipped?:number,Created?:string[],Quantities?:BluebeamMappedRow[],Errors?:string[]}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    PunchCreated;
    /** @type {number} */
    RfisCreated;
    /** @type {number} */
    Skipped;
    /** @type {string[]} */
    Created = [];
    /** @type {BluebeamMappedRow[]} */
    Quantities = [];
    /** @type {string[]} */
    Errors = [];
}
export class BluebeamCommitResponse {
    /** @param {{ResponseStatus?:ResponseStatus,Result?:BluebeamCommitResult,QuantitiesCsv?:string,QuantitiesWritten?:number}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {ResponseStatus} */
    ResponseStatus;
    /** @type {BluebeamCommitResult} */
    Result;
    /** @type {string} */
    QuantitiesCsv;
    /** @type {number} */
    QuantitiesWritten;
}
export class BluebeamCommitRequest {
    /** @param {{ProjectID?:number,FileName?:string,Rows?:BluebeamMappedRow[],RfpDocumentUID?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    ProjectID;
    /** @type {string} */
    FileName;
    /** @type {BluebeamMappedRow[]} */
    Rows = [];
    /** @type {?string} */
    RfpDocumentUID;
}

JavaScript BluebeamCommitRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

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/xml
Content-Type: application/xml
Content-Length: length

<BluebeamCommitRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <FileName>String</FileName>
  <ProjectID>0</ProjectID>
  <RfpDocumentUID>00000000-0000-0000-0000-000000000000</RfpDocumentUID>
  <Rows>
    <BluebeamMappedRow>
      <Area>String</Area>
      <AssignedSub>String</AssignedSub>
      <Description>String</Description>
      <Priority>String</Priority>
      <Quantity>0</Quantity>
      <QuantityKind>String</QuantityKind>
      <Reason>String</Reason>
      <RowNo>0</RowNo>
      <Source>
        <Area>0</Area>
        <Author>String</Author>
        <Color>String</Color>
        <Comments>String</Comments>
        <Count>0</Count>
        <Date>String</Date>
        <Extras xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </Extras>
        <Height>0</Height>
        <Label>String</Label>
        <Layer>String</Layer>
        <Length>0</Length>
        <Measurement>String</Measurement>
        <PageIndex>0</PageIndex>
        <PageLabel>String</PageLabel>
        <RowNo>0</RowNo>
        <Space>String</Space>
        <Status>String</Status>
        <Subject>String</Subject>
        <Volume>0</Volume>
        <Width>0</Width>
        <X>0</X>
        <Y>0</Y>
      </Source>
      <Target>String</Target>
      <TaskSeq>0</TaskSeq>
      <Title>String</Title>
      <Trade>String</Trade>
      <Unit>String</Unit>
    </BluebeamMappedRow>
  </Rows>
</BluebeamCommitRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<BluebeamCommitResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <QuantitiesCsv>String</QuantitiesCsv>
  <QuantitiesWritten>0</QuantitiesWritten>
  <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>
  <Result>
    <Created xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>String</d3p1:string>
    </Created>
    <Errors xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>String</d3p1:string>
    </Errors>
    <PunchCreated>0</PunchCreated>
    <Quantities>
      <BluebeamMappedRow>
        <Area>String</Area>
        <AssignedSub>String</AssignedSub>
        <Description>String</Description>
        <Priority>String</Priority>
        <Quantity>0</Quantity>
        <QuantityKind>String</QuantityKind>
        <Reason>String</Reason>
        <RowNo>0</RowNo>
        <Source>
          <Area>0</Area>
          <Author>String</Author>
          <Color>String</Color>
          <Comments>String</Comments>
          <Count>0</Count>
          <Date>String</Date>
          <Extras xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:KeyValueOfstringstring>
              <d6p1:Key>String</d6p1:Key>
              <d6p1:Value>String</d6p1:Value>
            </d6p1:KeyValueOfstringstring>
          </Extras>
          <Height>0</Height>
          <Label>String</Label>
          <Layer>String</Layer>
          <Length>0</Length>
          <Measurement>String</Measurement>
          <PageIndex>0</PageIndex>
          <PageLabel>String</PageLabel>
          <RowNo>0</RowNo>
          <Space>String</Space>
          <Status>String</Status>
          <Subject>String</Subject>
          <Volume>0</Volume>
          <Width>0</Width>
          <X>0</X>
          <Y>0</Y>
        </Source>
        <Target>String</Target>
        <TaskSeq>0</TaskSeq>
        <Title>String</Title>
        <Trade>String</Trade>
        <Unit>String</Unit>
      </BluebeamMappedRow>
    </Quantities>
    <RfisCreated>0</RfisCreated>
    <Skipped>0</Skipped>
  </Result>
</BluebeamCommitResponse>