Github API

Getting access, Developing, Testing

Back to Github

Add custom labels to a self-hosted runner for an organization

Add custom labels to a self-hosted runner configured in an organization.

You must authenticate using an access token with the admin:org scope to use this endpoint.

Input

type: object properties: parameters: type: object properties: org: type: string description: The organization name. The name is not case sensitive. runner_id: type: integer description: Unique identifier of the self-hosted runner. required: - org - runner_id title: Parameters data: type: object properties: labels: type: array minItems: 1 maxItems: 100 description: The names of the custom labels to add to the runner. items: type: string title: Data

Output

type: object properties: total_count: type: integer labels: type: array items: type: object title: Self hosted runner label properties: id: type: integer description: Unique identifier of the label. name: type: string description: Name of the label. type: type: string description: >- The type of label. Read-only labels are applied automatically when the runner is configured. enum: - read-only - custom