Integrate Commitments with External Data Sources
To integrate commitments with an external data source:
- Create or generate one or more JSON objects containing the following properties:
- sourceId: The unique identifier of commitment data in an external data source, such as an ERP system.
- projectId: The unique identifier of a project. The commitment will be added to this project.
- name: The name of the commitment.
- Send a request to the API using the following criteria:
- Endpoint: https://localhost:7001/primeapi/restapi/project
/commitment/syncBatch
- Operation:
POST
- Example Request Body:
[ { "sourceId":1, "name":"Example Commitment One", "projectId":341 }, { "sourceId": 2, "name": "Example Commitment Two", "projectId":341 } ]
- Endpoint: https://localhost:7001/primeapi/restapi/project
- The API should return a response similar to the following:
- Response Code:
207
- Example Response Body:
[ { "statusCode": 201, "sourceId": "1", "primaryKeyName":"commitmentId", "primaryKeyValue": 14002
}, { "statusCode": 201, "primaryKeyName": "commitmentId", "primaryKeyValue": 14003, "sourceId": "2" } ]
- Response Code: