GitLab API icon

GitLab API

Gitlab

Actions1062

Hooks → putApiV4HooksHookIdUrlVariablesKey

AI-generated

Summary

Updates a specified URL variable for a GitLab hook using a PUT request.

Inputs

  • skipAuthentication — Bypasses the GitLab API authentication configured in the credential.
  • authentication (required) — Selects the GitLab API credential type.
  • baseUrl — The GitLab server URL (defaults to https://gitlab.com).
  • hook_id (required) — The ID of the hook to update.
  • key (required) — The key of the URL variable to update.
  • putApiV4HooksHookIdUrlVariablesKey (required) — The request body schema defining the variable data to set.

Output shape

A single data item containing the API response.

Returns the updated hook configuration as defined by the GitLab API response.

Examples

Example 1: Update a hook URL variable

Set hook_id to the target hook ID, key to the variable name, and putApiV4HooksHookIdUrlVariablesKey to the new variable value.

Links

Discussion