upsert_api_endpoint
Document an endpoint: creates it, or updates the existing one for the same method + path. Use it whenever you add or change a route in the code, so the docs stay true. Only the fields you send change. path may use :id, {id} or {{id}} for variables. folder is created by name if missing. Send version (from get_api_endpoint) to avoid overwriting a teammate's edit; a stale version is rejected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Example request body (any JSON). null clears it. | |
| kind | No | `event` for a webhook your app sends. | |
| name | No | Short title, e.g. Create a charge. Defaults to METHOD /path. | |
| path | Yes | ||
| folder | No | Folder name, e.g. Charges. | |
| method | Yes | ||
| params | No | Documented fields. | |
| headers | No | ||
| version | No | ||
| description | No | ||
| collection_id | Yes |