Skip to main content
POST
Choose runners for a workflow run

Authorizations

X-API-Key
string
header
required

API key for machine-to-machine authentication

Headers

X-CostGraph-Tenant-ID
string

Tenant ID

Body

application/json

Workflow run and the default runner of each job

default
string
required
Example:

"blacksmith-4vcpu-ubuntu-2404"

allow_gpu
boolean | null
allowed_arch
string[]
allowed_os
string[]
arch
enum<string>
Available options:
,
x86_64,
arm64
cpu
integer
docker
boolean
event
string
Example:

"pull_request"

fork
boolean
gpu
integer
job_names
object
jobs
object
max_cores
integer | null
Required range: x >= 1
os
enum<string>
Available options:
,
linux,
macos,
windows
policy
enum<string>
Available options:
,
cheapest,
balanced,
fastest
providers
string[]
pull_request
integer | null
ram_gb
number | null
release
boolean
repository
string
Example:

"baselinehq/backend"

route_job
string
Example:

"route"

run_attempt
integer
run_id
integer
runner_name
string
secrets
boolean | null
workflow
string
Example:

"CI"

workflow_path
string
Example:

".github/workflows/ci.yml"

Response

OK

message
string
required
Example:

"some message"

status
string
required
Example:

"success"

data
object