GitLab API icon

GitLab API

Gitlab

Actions1062

Projects → patchApiV4ProjectsIdRegistryProtectionRepositoryRulesProtectionRuleId

AI-generated

Summary

Update an existing container protection repository rule for a specified GitLab project by providing the project ID or URL-encoded path, the protection rule ID, and the updated rule details.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project to update.
  • protection_rule_id (required) — The ID of the container protection repository rule to modify.
  • patchApiV4ProjectsIdRegistryProtectionRepositoryRulesProtectionRuleId (required) — The request body containing the updated fields for the container protection repository rule.
  • skipAuthentication — Optional boolean to skip authentication for the request; defaults to false.
  • baseUrl — The base URL of the GitLab instance; defaults to 'https://gitlab.com'.

Output shape

a JSON object representing the updated container protection repository rule as returned from the GitLab API

Returns the updated protection rule data or an error response if the update fails.

Links

Discussion