Save a response as an example
save_exampleSave a response example on a saved request for Kurlo's mock server and live-response comparison; optionally define status, headers, and body, with secrets and cookies removed.
Instructions
Save an example response on a saved request. Kurlo's mock server serves examples, and live responses can be compared against them. Without status and body it saves the response of the last run_request of that request in this session; secrets and cookies are removed from it. With status and body it saves the response you describe.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Body of a described response. | |
| name | No | Example name, for example "Created" or "Not found". Defaults to the status. | |
| notes | No | Optional notes. | |
| status | No | HTTP status code of a described response. | |
| headers | No | Other headers of a described response, as name to value. | |
| request | Yes | Request id or path (Collection/Folder/Name). | |
| contentType | No | Content-Type of a described response. Defaults to application/json for JSON bodies. |