Integrate Change Order Line Items with an External Data Source

To integrate change order line items with an external data source:

  1. Create or generate one or more JSON objects containing the following properties:
    • sourceId: The unique identifier of change order line item data in an external source, such as an ERP system.
    • changeOrderId: The unique identifier of a change order this line item will be associated with.
    • name: The name of the change order line item.
    • lineItemType: The type of the change order line item.
  2. Send a request to the API using the following information:
    • Endpoint: https://localhost:7001/primeapi/restapi/project/changeOrderLineItem/syncBatch
    • Operation: POST
    • Example Request Body:
    [ 
          	{ 
          		"sourceId": 1, 
          		"changeOrderId":14001, 
          		"name": "Example Line Item", 
          		"lineItemType":"LUMP_SUM" 
          	}, 
          	{ 
          		"sourceId": 2, 
          		"changeOrderId":14001, 
          		"name": "Example Line Item Two", 
          		"lineItemType":"LUMP_SUM" 
          	} 
          ]
  3. The API should return a response similar to the following:
    • Response Code: 207
    • Example Response Body:
    [ 
              { 
                  "statusCode": 201, 
                  "primaryKeyName": "lineItemId", 
                  "primaryKeyValue": 8001, 
                  "sourceId": "1" 
              }, 
              { 
                  "statusCode": 201, 
                  "primaryKeyName": "lineItemId", 
                  "primaryKeyValue": 8002, 
                  "sourceId": "2" 
              } 
          ]