Skip to main content
PATCH
Update Benchmark Task Env Resources

Authorizations

X-API-Key
string
header
required

Organization API key

Path Parameters

bench_id
string
required
task_id
string
required

Body

application/json

Fields left out keep their stored value.

cpus
number | null

CPU cores to request. Set cpus and memory_mb both to null for the default.

Required range: x > 0
memory_mb
integer | null

Memory to request in MiB.

Required range: x > 0
gpus
integer

GPUs to request.

Required range: x >= 0
network_mode
enum<string>

public, allowlist or no-network. Leaving allowlist clears allowed_hosts unless the request also sets it.

Available options:
no-network,
public,
allowlist
allowed_hosts
string[]

Domain names the sandbox may reach, such as pypi.org or *.example.com for every subdomain; no scheme, port, path or IP address. Only valid with allowlist.

Maximum string length: 253
Pattern: ^(\*\.)?([A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?\.)+[A-Za-z]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?$

Response

Successful Response

cpus
number | null
required

CPU cores requested; null uses the provider default.

memory_mb
integer | null
required

Memory requested in MiB; null uses the default.

gpus
integer
required

GPUs requested.

network_mode
enum<string>
required

public allows all outbound traffic, allowlist allows only allowed_hosts and the platform's own endpoints, and no-network allows only the platform's own endpoints.

Available options:
no-network,
public,
allowlist
allowed_hosts
string[]
required

Domain names the sandbox may reach; only set with allowlist.