GitLab API

GitlabTool

Actions1095

Projects → putApiV4ProjectsIdHooksHookIdUrlVariablesKey

AI-generated

Summary

Update a URL variable for a specific project hook in GitLab by providing the project ID, hook ID, variable key, and the updated variable data in the request body.

Inputs

  • id (required) — The ID of the GitLab project containing the hook.
  • hook_id (required) — The ID of the hook associated with the project.
  • key (required) — The key of the URL variable to update.
  • putApiV4ProjectsIdHooksHookIdUrlVariablesKey (required) — The request body containing data to update the URL variable identified by key for the specified hook and project.
  • skipAuthentication — Optionally skip authentication (defaults to false).
  • baseUrl — The base URL for the GitLab instance (defaults to https://gitlab.com).

Output shape

a JSON object representing the updated URL variable for the hook

The response returns the updated URL variable resource. Authentication is required unless skipAuthentication is set to true.

Links

Discussion