patch call
Make http/https patch
call for provided details
Syntax
patch request {
url: <text template> | <expression resulting in string>,
headers: {
"Authorization": <text template> | <expression resulting in string>
},
body : <exprssion>
} 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 thisheaders
: (Optional) You can optionally pass map of headersbody
: (Optional) You can optionally pass any expression as body
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
patch request {
url: text `<%baseURL%>/tag/`,
headers: {
"Authorization": "Basic XYZ"
},
body: object {
"name": name,
}
} matching body object tags.for(id) => { "id" : id } and headers { "content-type" : ct }