Create or change a saved request
save_requestCreate or update saved HTTP and GraphQL requests in a Kurlo workspace, with variable-based environment values and no stored secrets.
Instructions
Create a saved HTTP or GraphQL request, or change one. Without request it creates a new one; with request (id or path) it changes that one, and only the fields you pass are changed. params, headers and form replace the whole list. Use {{variables}} for anything that differs per environment, such as {{baseUrl}}. Secrets are never written: auth tokens and passwords must be {{variable}} references. Test scripts are JavaScript with the Postman pm.* API, for example pm.test("status is 200", () => pm.response.to.have.status(200)).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL; may use {{variables}}. Required for a new request. | |
| auth | No | Authentication. Secret parts (token, password, value) must be {{variable}} references. Defaults to inherit, which uses the collection's auth. | |
| body | No | Request body. JSON is stored as a JSON body, anything else as text, unless bodyType says otherwise. | |
| form | No | Form fields for a urlencoded or form (multipart) body. Replaces the existing list. | |
| name | No | Request name. Defaults to the method and path. | |
| type | No | Defaults to http. | |
| notes | No | Notes shown with the request. | |
| query | No | GraphQL query or mutation. | |
| folder | No | Folder path inside the collection, slash-separated, for example Users/Admin. An empty string moves the request to the top. | |
| method | No | HTTP method (default GET). Ignored for GraphQL, which is always POST. | |
| params | No | Query parameters. Replaces the existing list. | |
| headers | No | Request headers. Replaces the existing list. | |
| request | No | Id or path (Collection/Folder/Name) of the request to change. Omit to create one. | |
| bodyType | No | ||
| variables | No | GraphQL variables. | |
| collection | No | Collection to create the request in, or to move it to. Optional when there is only one. | |
| testScript | No | JavaScript run on the response; pm.test assertions become the request's tests. | |
| preRequestScript | No | JavaScript run before the request is sent. |