http_patch¶
Hook for Requests 'patch' type prompts.Link
Inputs¶
Name | Type | Default | Required | Description |
---|---|---|---|---|
username | str | None | False | |
password | str | None | False | |
url | str | True | URL for the new request object. | |
extra_kwargs | Union[str, dict] | {} | True | Optional arguments that request takes. |
headers | dict | None | False | Headers to include in request. |
data | Any | None | False | Dictionary, list of tuples, bytes, or file-like object to send in the body of the Request. |
no_exit | bool | False | True | Whether to exit on non-200 response. |
Arguments¶
Position | Argument | Type |
---|---|---|
1 | url | str |
2 | data | Any |
Returns¶
None
Examples¶
Make patch request and store response code in key
input_json:
stuff: things
compact->: http_patch https://httpbin.org/patch --json input_json
expanded:
->: http_patch
url: https://httpbin.org/patch
json:
stuff: things