Creating a case by using an API
Increase the versatility of your Pega Platform application by creating a case by calling the create case microservice from an external application. Consequently, you improve the efficiency of your business processes and save time by automating case creation.
For example, when a customer submits a ticket in a technical support application, the application creates a bug in your project management system, such as JIRA.
The Generate create case microservice
code option opens a dialog box that contains the information that you can use in
a Pega API call to call the create case microservice from your external application. By
calling the microservice, you create a case in your application.
- In the navigation pane of Dev Studio, click Case types, and then click the case type that you want to open.
- On the Settings tab, click Integration.
- In the Microservice APIs section, click Generate create case microservice code.
- Create a case of the selected case type from your external application by using the
information in the following fields:
- In the Request URL (HTTP POST method) field, copy the URL
that you can access to create the case, and then paste the URL in the external
application.Ensure that you invoke the URL by using the HTTP POST method.
- In the HTTP authentication header field, copy the header for the microservice call, and then, in the external application, enter the login credentials in the header for basic HTTP authentication.
- In the Request body field, copy the body for the microservice call, and then, in the external application, paste the body and replace the values for fields in the content node with values that are appropriate for the case that you want to create.
For more information, see the documentation for your external application. - In the Request URL (HTTP POST method) field, copy the URL
that you can access to create the case, and then paste the URL in the external
application.
- Optional: To see a list of the built-in Pega API REST services in Pega Platform, click View all Pega API.
Previous topic Email account limitations Next topic Defining default data sources