Custom REST Write
execute_rest_writeExecute write operations to GitLab REST API for endpoints not covered by dedicated tools. Supports POST, PUT, PATCH, DELETE—verify path before use.
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 — JSON-serialized as application/json. 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) |