Integrate Projects with an External Data Source
To integrate projects with an external data source:
- Create or generate one or more JSON object containing the following fields:
- sourceId: The unique identifier of project data in an external resource, such as an ERP system.
- workspaceId: The unique identifier of a workspace.
- projectName : The name of the project.
- projectCode: The project code.
- Send a request to the API using the following information:
-
Endpoint:
https://localhost:7001/api/restapi/project/project/syncBatch
-
Operation:
POST
- Example Request Body:
[ { "workspaceId": 30002, "projectName": "Example Project", "projectCode": "Example Project", "sourceId": 1 }, { "workspaceId": 30002, "projectName": "Example Project Two", "projectCode": "Example Project Two", "sourceId": 2 } ]
-
Endpoint:
- The API should return a response similar to the following:
-
Response Code:
207
- Example Response Body:
[ { "statusCode": 201, "primaryKeyName": "projectId", "primaryKeyValue": 36202, "sourceId": "1" }, { "statusCode": 201, "primaryKeyName": "projectId", "primaryKeyValue": 36202, "sourceId": "2" } ]
-
Response Code: