Skip to content

List all package protection rules

GET
/api/v4/projects/{id}/packages/protection/rules

Lists all package protection rules for a specified project.

id
required
One of:
string

The ID or URL-encoded path of the project

OK

Media type application/json
object
id
integer format: int64
project_id
integer format: int64
package_name_pattern
string
package_type
string
minimum_access_level_for_delete
string
minimum_access_level_for_push
string
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