Request

Response

    Project Bid Forms
    PATCH

    project-bid-forms/{formId}/line-items:batch-patch

    Updates multiple project bid form line items. Max 2000 bid form line items per call.

    The request body must be an object with line item ids as keys and the fields to update as values.

    Note that a bid form’s line items must each have a unique combination of the type, description, and section field values.

    Resource Information

    Method and URI
    PATCH
    https://developer.api.autodesk.com/construction/buildingconnected/v2/project-bid-forms/{formId}/line-items:batch-patch
    Authentication Context
    User context required
    Required OAuth Scopes
    data:write
    Data Format
    JSON

    Request

    Headers

    Authorization*
    string
    Must be Bearer <token>, where <token> is a three-legged access token obtained via an Authorization Code flow.
    Content-Type*
    string
    Must be application/json
    * Required

    Request

    URI Parameters

    formId
    string
    The ID of the form.

    Request

    Body Structure

    An object keyed by line item IDs with values that are ProjectBidFormLineItemUpdate type. Max 2000 bid form line items per call.

    Expand all
    object
    The details of an update to a line item on a project-level bid form.
    description
    string
    A description of the bid form line item.
    section
    string
    The user-defined name of a new or existing section of the bid form that the line item should be in. If the section does not exist yet, it is created automatically.

    If this value is null, the item will not be in a section.

    isRequired
    boolean
    Indicates whether the bid form line item is required. Possible values:
    • true: The bid form line item is required.
    • false: The bid form line item is optional.
    unit
    enum:string
    The unit format of the bid form line item.

    The possible values of this field depend on the value of the line item’s type field. Each possible line item type is listed, followed by the possible values of unit for that type:

    • ACKNOWLEDGMENT — YES_NO, TEXT, PERCENTAGE, TOTAL_COST_ONLY
    • BONDING — YES_NO, TEXT, PERCENTAGE, TOTAL_COST_ONLY
    • CERTIFICATION — YES_NO, TEXT
    • DISCLAIMER — Converted to null
    • LABOR_RATE — PER_HOUR, PER_DAY, PER_WEEK
    • MARKUP — PERCENTAGE, TOTAL_COST_ONLY

    Note that the value TOTAL_COST_ONLY is used for a lump sum line item.

    external
    object
    Information about an external tool that can link the line item to a cost or other element that is external to BuildingConnected.

    Note that BuildingConnected does not use information in this object.

    id*
    string
    The ID of the external tool.
    name
    string
    The name of the external tool.
    code
    string
    The cost code associated with the project line item.

    Max length: 87

    * Required

    Response

    HTTP Status Code Summary

    200
    OK
    OK
    400
    Bad Request
    The parameters of the requested operation are invalid.
    401
    Unauthorized
    The provided bearer token is not valid.
    403
    Forbidden
    The user or service represented by the bearer token does not have permission to perform this operation.
    404
    Not Found
    The requested resource could not be found.
    429
    Too Many Requests
    Rate limit exceeded; wait some time before retrying. The ‘Retry-After’ header might provide the amount of the time to wait.
    500
    Internal Server Error
    An unknown error occurred on the server.

    Response

    Body Structure (200)

    Expand all
    results
    array: object
    An array of the updated bid form line items
    id
    string
    The unique ID of the bid form line item.

    Max length: 24

    type
    enum:string
    The type of the bid form line item.

    The possible values have the following UI equivalents:

    • ACKNOWLEDGMENT — General Acknowledgments
    • BONDING — Bond Information
    • CERTIFICATION — Certifications
    • DISCLAIMER — Disclaimers and Clarifications
    • LABOR_RATE — Labor Rates
    • MARKUP — Fees and Markups
    description
    string
    A description of the bid form line item.
    section
    string
    The user-defined name of a section of the bid form that the line item is in. This value is null if the item is not in a section.
    isRequired
    boolean
    Indicates whether the bid form line item is required. Possible values:
    • true: The bid form line item is required.
    • false: The bid form line item is optional.
    unit
    enum:string
    The unit format of the bid form line item.

    The possible values of this field depend on the value of the line item’s type field. Each possible line item type is listed, followed by the possible values of unit for that type:

    • ACKNOWLEDGMENT — YES_NO, TEXT, PERCENTAGE, TOTAL_COST_ONLY
    • BONDING — YES_NO, TEXT, PERCENTAGE, TOTAL_COST_ONLY
    • CERTIFICATION — YES_NO, TEXT
    • DISCLAIMER — Converted to null
    • LABOR_RATE — PER_HOUR, PER_DAY, PER_WEEK
    • MARKUP — PERCENTAGE, TOTAL_COST_ONLY

    Note that the value TOTAL_COST_ONLY is used for a lump sum line item.

    code
    string
    The cost code associated with the project line item.
    external
    object
    Information about an external tool that can link the line item to a cost or other element that is external to BuildingConnected.

    Note that BuildingConnected does not use information in this object.

    id
    string
    The ID of the external tool.
    name
    string
    The name of the external tool.

    Example

    OK

    Request

    curl -v 'https://developer.api.autodesk.com/construction/buildingconnected/v2/project-bid-forms/:formId/line-items:batch-patch' \
      -X 'PATCH' \
      -H 'Authorization: Bearer AuIPTf4KYLTYGVnOHQ0cuolwCW2a' \
      -H 'Content-Type: application/json' \
      -d '{
            "53811754d3a604966df72247": {
              "description": "Did you see thing2",
              "section": "Section 1",
              "external": {
                "id": "1234-3214-1234-3214",
                "name": "External System"
              }
            }
          }'
    
    Show More

    Response

    {
      "results": [
        {
          "id": "53811754d3a604966df72247",
          "type": "ACKNOWLEDGMENT",
          "description": "This line item is important.",
          "section": null,
          "isRequired": true,
          "unit": "YES_NO",
          "code": "D2",
          "external": {
            "id": "ext-cost-id-123",
            "name": "External Cost Code"
          }
        }
      ]
    }
    
    Show More