Update an Integrated Company
To update an existing integrated company:
- 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.
- 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" }
-
Endpoint:
- The API should return a response similar to the following:
-
Response Code:
204
- Example Response Body:
{ "statusCode": 204, "primaryKeyName": "companyId", "primaryKeyValue": 14001, "sourceId": "1" }
-
Response Code: