Update a package protection rule
Updates a package protection rule for a specified project.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Request Body
Section titled “ Request Body ”object
Package name protected by the rule. For example @my-scope/my-package-*. Wildcard character * allowed.
Package type protected by the rule. For example npm.
Minimum GitLab access level required to delete a package. Valid values include null, owner or admin. If the value is null, the default minimum access level is maintainer. Must be provided when minimum_access_level_for_push is not set. Behind a feature flag named packages_protected_packages_delete. Disabled by default.
Minimum GitLab access level required to push a package. Valid values include null, maintainer, owner or admin. If the value is null, the default minimum access level is developer. Must be provided when minimum_access_level_for_delete is not set.
Responses
Section titled “ Responses ”OK
object
Example
{ "id": 1, "project_id": 1, "package_name_pattern": "flightjs/flight", "package_type": "npm", "minimum_access_level_for_delete": "owner", "minimum_access_level_for_push": "maintainer"}Bad Request
Unauthorized
Forbidden
Not Found
Unprocessable Entity