Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Endpoint for real-time publishing of cases

Updated on August 26, 2022

After you publish existing case data, the remote application can immediately publish any changes to the cases. When you invoke the appropriate REST APIs, you ensure that Pega Process Fabric Hub and your remote application are always in sync. As a result, Pega Process Fabric Hub reflects accurate data about cases from your application.

You publish new cases to Pega Process Fabric Hub by invoking the following endpoint:

POST /cases

You update cases in Pega Process Fabric Hub by invoking the following endpoint:

PUT /cases/{caseID}

Note: As a best practice, when you handle large amounts of data, use scaling mechanisms, such as queues.

The following table shows a sample request body for the real-time endpoints:

ElementValue
Request URLFor a new case:
https://vlenghydcnt17263-processfabrichub.lab.pega.com/prweb/api/ppf/v1/cases
For an existing case:
https://vlenghydcnt17263-processfabrichub.lab.pega.com/prweb/api/ppf/v1/cases/EPIC-2
Request headersAuthorization: Bearer access token
Request bodyFor a new case:
POST /cases 
{ 
    “ID”: “R-12010”, 
     “label”: “Repayment Extension”, 
     “status”: “New”, 
     “createDateTime”: “20220223T002801.893 GMT”, 
     “createOperator”: “0055g000004ccPCAAY”, 
     “updateDateTime”: “20220223T003001.893 GMT”, 
     "updateOperator": "0055g000004ccPCAAY", 
     "priority": "40",
     "deadlineTime" :"20211227T120000.000 GMT",
     "customerName": "uPlusTelco plc",  
     “actions”: [ 
       { 
          “ID”: “redirect”, 
          “href”: “/case/R-12010”, 
          "title": "Redirect and Open", 
          "type": "Get" 
    } 
  ] 
} 
For an existing case:
PUT  /cases/R-12010 
{ 
  “ID”: “R-12010”, 
  “label”: “Repayment Extension”, 
  “status”: “New”, 
   “createDateTime”: “20220223T002801.893 GMT”, 
   “createOperator”: “0055g000004ccPCAAY”, 
   “updateDateTime”: “20220223T003001.893 GMT”, 
   "updateOperator": "0055g000004ccPCATL", 
    "priority": "40",
    "deadlineTime" :"20211227T120000.000 GMT",
    "customerName": "uPlusTelco plc", 
    “actions”: [ 
      { 
         “ID”: “redirect”, 
         “href”: “/case/R-12010”, 
         "title": "Redirect and Open", 
         "type": "Get" 
     } 
  ] 
} 
Response status202
Response bodyNot 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:

ElementValue
Case URLhttps://ap15.uplustelco.com/case/0065g000002fJBpAAM
systemURL property in the Create Registration REST APIhttps://ap15.uplustelco.com
actions.href property in the Publish Cases in Batch REST APIcase/0065g000002fJBpAAM
Sample request payload
{ 
   "requests": [ 
    { 
    "body": { 
     "ID": "0065g000002fJBpAAM", 
     "createDateTime": "20210226T061741.441 GMT", 
     "createOperator": "0055g000004ccPCAAY", 
     "label": "Credit Loan", 
     "status": "New", 
     "updateDateTime": "20210226T061741.441 GMT", 
     "updateOperator": "0055g000004ccPCAAY", 
     "customerName": "uPlusTelco plc", 
     "priority": "30", 
     "deadlineTime": "20211227T120000.000 GMT", 
     "actions": [ 
      { 
       "href":"case/0065g000002fJBpAAM", 
       "ID": "redirect", 
       "title": "Redirect and Open", 
       "type": "Get" 
      } 
   ] 
   }, 
   "method": "POST" 
    }, 
   { 
   "body": { 
    "ID": "EPIC-2", 
    "createDateTime": "20210226T061741.441 GMT", 
    "createOperator": "0055g000004ccPCAAY", 
    "label": "Submit Loan", 
    "status": "OPEN-IN-PROGRESS", 
    "updateDateTime": "20210226T061741.441 GMT", 
    "updateOperator": "0055g000004ccPCAAY ", 
    "customerName": "uPlus Hotels & Resorts Ltd", 
    "priority": "60", 
    "deadlineTime": " 20211227T120000.000 GMT", 
    "actions": [ 
     { 
      "href": "case/EPIC-1234", 
      "ID": "redirect", 
      "title": "Redirect and Open", 
      "type": "Get" 
     } 
    ] 
   }, 
   "method": "POST" 
  } 
 ] 
}

For more information, see the Swagger documentation and Accessing and testing Pega DX API Version 1.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us