IBM Security QRadar SOAR

 View Only
Expand all | Collapse all

"Call Rest API "function - how to pass multiple values in rest_body

  • 1.  "Call Rest API "function - how to pass multiple values in rest_body

    Posted Thu January 21, 2021 05:34 PM
    Hello All, I'm getting "400 Client Error: Bad Request for url" when trying to send API request using the Utilities function for Resilient. Can some one please tell me how to pass multiple values in rest_body in the "Call Rest API" function.

    ------------------------------
    Anu CN
    ------------------------------


  • 2.  RE: "Call Rest API "function - how to pass multiple values in rest_body

    Posted Mon February 15, 2021 01:27 PM

    Hi Anu,

    Can you provide a little more information on how you're using the parameters to the function call?  There are a number of function parameters which will effect this call. Here's a short guide:

    "rest_method" : "GET", "POST", "DELETE", "PUT", "PATCH"
    "rest_url": Your UL
    "rest_headers": Json formatted name/value pairs such as { "Content-Type": "application/json" }
    "rest_cookies": Json formatted name/value pairs
    "rest_body": Json formatted name/value pairs
    "rest_verify": True/False for verifying the https certificate or skipping validation




    ------------------------------
    Mark Scherfling
    ------------------------------