Custom REST Write
execute_rest_writeExecute arbitrary POST, PUT, PATCH, or DELETE requests against GitLab REST API write endpoints not covered by dedicated tools; verify paths before destructive DELETE calls.
Instructions
Execute an arbitrary POST/PUT/PATCH/DELETE request against the GitLab REST API at /api/v4. Open-ended escape hatch for write endpoints not covered by a dedicated tool. Destructive — DELETE is permitted, so check the path before invoking. For reads, use execute_rest_read.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Request body as a JSON value or JSON-encoded string. Sent as application/json; nested objects are preserved. Omit for endpoints that don't take a body (most DELETE / some PUT). | |
| path | Yes | Path under /api/v4, beginning with "/" (e.g. "/projects/42/issues" or "/projects/foo%2Fbar/merge_requests/3/merge"). Must not include host, "/api/v4" prefix, or "?" query string. | |
| query | No | Query string parameters. Most write endpoints take their args in the body, but a few mix. | |
| method | Yes | HTTP method. DELETE is destructive and not reversible. | |
| userCredentials | No | Your GitLab credentials (optional — falls back to the configured env token if not provided) |