Skip to main content


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

Configuring the request and response in REST integration by adding a file

Updated on April 6, 2022

On the Data model page of the Create REST Integration wizard, you can upload a file with sample request and response data to define the request and response data model for each method that you selected on the Resource methods page.

  1. Click Add a file.
  2. Select a method from the Choose method list.
  3. For POST and PUT methods, in the Sample type field, select the type of data that you want to upload.
  4. Click Choose File to browse for a file of sample request or response data and click Open to upload the file.
  5. Click Submit to save the sample data that you uploaded.
    The file that contains the uploaded data is listed in the Sample section and is named by using the format <method> File upload. For example, if you upload sample response data for a GET method, the file is named GET File upload. You can click View next to the name to see the data.
  6. Continue with step 2 of Defining a data model for REST integration.
  • Previous topic Configuring the request and response in REST integration by adding a REST response
  • Next topic Updating and generating records for REST integration

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