---
title: "set defjob"
method: PUT
path: "/api/v0/machines/create_bids/"
tags: ["Machines"]
---

# set defjob

`PUT /api/v0/machines/create_bids/`

Creates default jobs (background instances) for a specified machine with the given parameters.

CLI Usage: `vastai set defjob <machine_id> --price_gpu <price> --price_inetu <price> --price_inetd <price> --image <image> [--args <args>]`

## Request body

- object
  - `machine` integer, required — ID of the machine to create jobs for.
  - `price_gpu` number, float, required — Price per GPU per day.
  - `price_inetu` number, float, required — Price for internet upload.
  - `price_inetd` number, float, required — Price for internet download.
  - `image` string, required — Docker image to use for the job.
  - `args` string[] — Arguments for the Docker image.

## Response `200`

Success response

- object
  - `success` boolean
  - `machine_id` integer
  - `user_id` integer
  - `you_sent` object — The original request JSON.

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `429` — Too Many Requests

---

[API](https://skmtc.net/vast/apis/vast-ai-api.md) · [All operations](https://skmtc.net/vast/apis/vast-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vast/vast-ai-api/revisions/4ed14f79f796/schema)
