Skip to content

Define Api Request Accept Type: REQ_ACCEPT_TYPE

The Define Api Request Accept Type command specifies the format of the response expected from the API, such as JSON, XML, or other formats. This ensures the API response aligns with the automation script’s processing capabilities.

Example: Suppose you are expecting JSON response from an API.

Steps to Configure:

  1. From the Action drop-down, select Define Api Request Accept Type.
  2. Leave the Screen Name and Element Key fields blank.
  3. Enter the desired response type (e.g., application/json) in the Parameter section.
  4. Click Save.

Note: While the steps for adding an action command are identical in both views, the display of the steps changes:

scrn-define-api-request-accept-type-tabular-view
Tabular View
scrn-define-api-request-accept-type-card-view
Card View

Expected Outcome on Execution: The system ensures the API response is returned in the specified format, allowing seamless data parsing.

Back To Top