• Documentation of Corr Tool
    • Installation
    • Journey Programming Language
      • Data Types
      • Expressions
      • Templates
      • Statements
        • Rest Operations
          • get call
          • post call
          • put call
          • patch call
          • delete call
        • Service Virtualisation

delete call

Make http/https delete call for provided details

Syntax

delete request {
    url: <text template> | <expression resulting in string>,
    headers: {
        "Authorization": <text template> | <expression resulting in string>
    }
} matching body object <extractable object template> and headers { "<header name>" : <extractable header name> }

Options

  • url : (Required) You can pass any text template variable resulting in string or sting constant to this
  • headers : (Optional) You can optionally pass map of headers

Extractions

You can optionally extract data from the response by providing an extraction clause on the body matching body object <extractable object template> and optionally on headers and headers <extractable header template>

Example Usage

delete request {
    url: text `<%baseURL%>/tag/`,
    headers: {
        "Authorization": "Basic XYZ"
    }
} matching body object tags.for(id) => { "id" : id } and headers { "content-type" : ct }