Update repository label setting (beta)

Update the setting (e.g. security/license policy) for a repository label.

Note that repository label settings currently only support issueRules,
issueRulesPolicyDefault, licensePolicy, and
recentlyPublishedThresholdMs. A policy is considered "active"
for a given repository label if the issueRulesPolicyDefault is
set, and inactive when not set. issueRules can be used to further
refine the alert triage strategy.

This endpoint consumes 1 unit of your quota.

This endpoint requires the following org token scopes:

  • repo-label:update
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The slug of the organization

string
required

The ID of the label

Body Params
issueRules
object
string
enum
Defaults to medium

The default security policy for the repository label

Allowed:
licensePolicy
object
integer | null
≥ 0
Defaults to 0

The recently published package alert threshold for the repository label, in milliseconds

Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json