create_route_with_responses
Create a mock API route and specify all responses, including default and conditional ones, in a single call.
Instructions
Create a new HTTP route together with all its responses (default + conditionals) in a single call. The first response in the list is treated as the default unless one has isDefault=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| environmentId | Yes | Environment UUID | |
| method | Yes | HTTP method | |
| endpoint | Yes | Route path without leading slash (e.g. users/:id) | |
| documentation | No | Optional route description | |
| responses | Yes | Array of responses. First one becomes default unless isDefault is set on another. |