• Documentation
  • Workato Blog
  • Product Blog
  • Return to Workato
  • Log in
  • ☰
  • Solutions
  • Forums
  • Tickets
Solution home App Resources HTTP

HTTP: What are the Response Types When Using the HTTP Connector?

Created by: Kai

Modified on: Wed, Nov 23, 2016 at 1:17 AM

The HTTP Connector accepts 3 formats of responses when processing the response schema from the API calls made. The defined schema here will be used to generate a datatree for this trigger/action, for use in subsequent steps:


M9fdwF9UZHYc3RvuTZmGd3fiFZdNnSLfew.png

(Response Types when making request via HTTP Connector)


Raw HTTP response body

This can be used when input data does not require further processing. This means that when the data is referenced later, it will be shown in its entirety as a string in the schema output, identified as one whole block rather than individually. However, user can still use formulas in formula mode to break down the data for further customisation. 


Parse Response as JSON

Most REST APIs, such as QuickBooks and JIRA, are structured in JSON and users can directly copy the sample JSON responses from the API documentation and paste in the Response body example. You can further customize the schema to ensure it picks up your custom fields.

MnAgknazcEs1be0aQxM6xL3IoupiKG-5hg.png
(an example of JSON code in Response body example)

Parse Response as XML
This allows you to work with APIs that have an XML data format. Generally, we work with REST APIs with XML data formats. Simply pass in the sample API response provided in the API documentation, and edit accordingly to fit the expected response.

T52rXht1JZLl2Iok4MNS63sW0dovejFy2g.png


K
Kai is the author of this solution article.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.

Related Articles

    Still can't find your solution?

    Visit our forums to search for answers, or post your own questions.

    Documentation
    Developer's Library
    Tutorials
    eBooks
    Expert Hour
    Product Hour
    Product Blog
    Workato Blog
    Product updates
    Customer Stories
    Workato 2018 © | Privacy | Terms | +1 (844) GO-WORKATO
    • Documentation
    • Workato Blog
    • Product Blog
    • Solutions
    • Forums
    • Tickets
    • Log in
    • Return to Workato