Create mock from request
create_mock_from_requestTurn any captured proxy request into a reusable mock rule by mirroring its recorded response. Supply the request id, then override name, URL pattern, or dynamic templating before saving.
Instructions
Convenience: fetch a captured request by id and scaffold a mock rule from its recorded response. Optional overrides let the caller tweak fields before persisting.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Override the auto-generated rule name. | |
| dynamic | No | Mark the rule as dynamic so the body supports templating. | |
| request_id | Yes | Traffic entry id to mirror. | |
| url_pattern | No | Override the URL pattern. Defaults to the recorded path. |