document_add_parameter
Add a parameter to an API path item or operation, with options for name, location, type, required flag, and description.
Instructions
Add a parameter to a path item or operation
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Parameter name | |
| path | Yes | The API path (e.g. /pets) | |
| type | No | Schema type (string, integer, number, boolean, array). Defaults to string | |
| method | No | HTTP method (omit to add to path item level) | |
| session | Yes | Session name | |
| location | Yes | Parameter location: query, path, header, cookie | |
| required | No | Whether the parameter is required | |
| description | No | Parameter description |