save_captured_request
Document a real request captured by a tunnel (get its id from list_requests). If an endpoint already covers the route, the response is added to it as an example; otherwise an endpoint is created from the request. Credentials, cookies and signatures are replaced by {{variables}} and only JSON bodies are kept. A response already saved as an example is not duplicated. Use it to document webhooks and calls you have only seen in traffic.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| folder | No | Folder for a newly created endpoint, created by name if missing. | |
| method | No | With path: the endpoint that should receive the example. | |
| tunnel | Yes | Subdomain of the tunnel that captured the request. | |
| request_id | Yes | Id of the captured request, from list_requests. | |
| endpoint_id | No | Add the example to this endpoint instead of matching by route. Alternative to method + path. | |
| collection_id | Yes |