Skip to main content
PUT
set defjob

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Body

application/json
machine
integer
required

ID of the machine to create jobs for.

Example:

12345

price_gpu
number<float>
required

Price per GPU per day.

Example:

0.5

price_inetu
number<float>
required

Price for internet upload.

Example:

0.1

price_inetd
number<float>
required

Price for internet download.

Example:

0.1

image
string
required

Docker image to use for the job.

Example:

"vastai/tensorflow"

args
string[]

Arguments for the Docker image.

Example:

Response

Success response

success
boolean
Example:

true

machine_id
integer
Example:

12345

user_id
integer
Example:

67890

you_sent
object

The original request JSON.