Endpoint for batch publishing of cases
The Publish Cases in Batch endpoint helps you synchronize data between your remote application and Pega Process Fabric Hub in bulk. The cases data publication is done from remote application, and Pega Process Fabric Hub only accepts cases data.
You publish cases in batch by invoking the following endpoint:
POST /cases/batch
Each batch request can contain up to 50 request items.
The batch endpoint is optional. Once the data synchronization of all the resource types (which is tasks, work queues, and operator mappings), is complete, the registration automatically moves to the active state and the application that you register is ready for use in Pega Process Fabric.
The following table shows a sample request body for the batch endpoint for cases:
Element | Value |
Request URL | https://vlenghydcnt17263-processfabrichub.lab.pega.com/prweb/api/ppf/v1/cases/batch |
Request headers | Authorization: Bearer access token |
Request body |
|
Response status | 202 |
Response body | Not applicable |
After you publish all the existing open cases, invoke the batch endpoint with the preactivationDataLast query string parameter set to true with no request body. Invoking this request informs Pega Process Fabric Hub that cases synchronization is complete. For example, the following table shows information about the endpoint that you invoke to inform Pega Process Fabric Hub that the application has published all the case data:
Element | Value |
Request Method | POST |
Request URL | https://vlenghydcnt17263-processfabrichub.lab.pega.com/prweb/api/ppf/v1/cases/batch?preactivationDataLast=true |
Request headers | Authorization: Bearer access token |
Request body | Not applicable |
Response status | 202 |
Response body | Not applicable |
URL redirects
For cases, REST APIs, include a case redirect URL in the request payload. The redirect URL and the registration system URL form the absolute case redirect URL. When an end user clicks a case link in Pega Process Fabric Hub, the browser opens the absolute redirect URL in a new tab.
The following table shows a sample request payload:
Element | Value |
Case URL | https://ap15.uplustelco.com/case/0065g000002fJBpAAM |
systemURL property in the Create Registration REST API | https://ap15.uplustelco.com |
actions.href property in the Publish Cases in Batch REST API | case/0065g000002fJBpAAM |
Sample request payload |
|
For more information, see the Swagger documentation and Accessing and testing Pega DX API Version 1.
Previous topic Endpoint for batch publishing of operators Next topic Endpoint for real-time publishing of cases