Skip to content

Register a new repository-level runner

POST
/repos/{owner}/{repo}/actions/runners
owner
required
string

Owner of the repo

repo
required
string

Name of the repo

Media type application/json
RegisterRunnerOptions declares the accepted options for registering runners.
object
description

Description of the runner to register.

string
ephemeral
name
required

Name of the runner to register. The name of the runner does not have to be unique.

string
Example generated
{
"description": "example",
"ephemeral": true,
"name": "example"
}

RegisterRunnerResponse contains the details of the just registered runner.

Media type application/json
RegisterRunnerResponse contains the details of the just registered runner.
object
id
integer format: int64
token
string
uuid
string
Example generated
{
"id": 1,
"token": "example",
"uuid": "example"
}

APIError is error format response

Media type application/json

APIError is an api error with a message

object
message
string
url
string
Example generated
{
"message": "example",
"url": "example"
}

APIUnauthorizedError is a unauthorized error response

Media type application/json
object
message
string
url
string
Example generated
{
"message": "example",
"url": "example"
}

APINotFound is a not found error response

Media type application/json
object
errors
Array<string>
message
string
url
string
Example generated
{
"errors": [
"example"
],
"message": "example",
"url": "example"
}