GitLab API

GitlabTool

Actions1095

Projects → patchApiV4ProjectsIdPackagesProtectionRulesPackageProtectionRuleId

AI-generated

Summary

Update a specific package protection rule for a project in GitLab by PATCHing the rule identified by its ID within the given project.

Inputs

  • id (required) — The ID or URL-encoded path of the project whose package protection rule is being updated.
  • package_protection_rule_id (required) — The ID of the package protection rule to update within the project.
  • patchApiV4ProjectsIdPackagesProtectionRulesPackageProtectionRuleId (required) — The request body containing the fields to patch on the specified package protection rule.

Output shape

a single updated package protection rule object as returned by the GitLab API PATCH endpoint

The operation returns the updated package protection rule details. Authentication is required unless 'Skip Authentication' is enabled. The request is sent to the path /api/v4/projects/{id}/packages/protection/rules/{package_protection_rule_id} using HTTP PATCH.

Links

Discussion