update_route
Modify a mock API route's method, endpoint, documentation, or default response. Only specified fields are changed.
Instructions
Update a route's method, endpoint, documentation and/or its default response (body, status code, headers). Only provided fields are changed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| environmentId | Yes | Environment UUID | |
| routeId | Yes | Route UUID | |
| method | No | New HTTP method (optional) | |
| endpoint | No | New route path (optional) | |
| documentation | No | New documentation string (optional) | |
| body | No | New body for the default response (optional) | |
| statusCode | No | New status code for the default response (optional) | |
| headers | No | New full header list for the default response — replaces existing headers (optional) |