GitLab API

GitlabTool

Actions1095

Projects → deleteApiV4ProjectsIdHooksHookIdUrlVariablesKey

AI-generated

Summary

Delete a specified URL variable key from a project hook in GitLab by providing the project ID, hook ID, and variable key.

Inputs

  • id (required) — The ID of the GitLab project from which to delete the URL variable.
  • hook_id (required) — The ID of the hook associated with the project.
  • key (required) — The key of the URL variable to delete from the hook.

Output shape

no body — success or failure response only

The operation issues a DELETE request to the GitLab API endpoint for a project's hook URL variable. It returns success status if the variable is deleted successfully; no response body is expected.

Examples

Example 1: Delete a URL variable key named 'TOKEN' from hook ID 15 in project ID 123.

Set 'id' to 123, 'hook_id' to 15, and 'key' to 'TOKEN'. Execute the operation to remove the variable from the specified hook.

Links

Discussion