Update an Integrated Company

To update an existing integrated company:

  1. Create or generate a JSON object containing the following fields, including any additional fields you want to update:
    • sourceId: The unique identifier of the company in an external data source, such as an ERP system.
    • sourceSiteId: The unique identifier of the location of the company in an external data source, such as an ERP system.
  2. Send a request to the API using the following information:
    • Endpoint: https://localhost:7001/api/restapi/project/company/sync
    • Operation: POST
    • Example Request Body:
    { 
          	"sourceId": 1, 
          	"sourceSiteId": "New York", 
          	"status": "INACTIVE" 
          }
    		
  3. The API should return a response similar to the following:
    • Response Code: 204
    • Example Response Body:
    { 
          	"statusCode": 204, 
          	"primaryKeyName": "companyId", 
          	"primaryKeyValue": 14001, 
          	"sourceId": "1" 
          }