Simulate request
simulate_requestShow which endpoint and which response (including response variants) a request would get, and why, without sending it or logging anything. Reports each variant's conditions as matched or not, and probabilities for weighted endpoints. Use it to check response variants after create_endpoint or update_endpoint.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Raw request body, e.g. JSON text. | |
| path | Yes | Request path, optionally with a query string, e.g. /api/orders/42?expand=items. | |
| method | Yes | HTTP method of the request. | |
| headers | No | Request headers. Include Content-Type when sending a body, and X-APIMock-Variant to force a variant. | |
| workspace | Yes | Target workspace slug (from list_workspaces). |