---
title: "list machine"
method: PUT
path: "/api/v0/machines/create_asks/"
tags: ["Machines"]
---

# list machine

`PUT /api/v0/machines/create_asks/`

Creates or updates ask contracts for a machine to list it for rent on the vast.ai platform.
Allows setting pricing, minimum GPU requirements, end date and discount rates.

CLI Usage: `vastai list machine <machine_id> [options]`

## Request body

- object
  - `machine` integer, required — ID of the machine to list
  - `price_gpu` number, float — Price per GPU per hour
  - `price_disk` number, float — Price per GB of disk storage
  - `price_inetu` number, float — Price per GB of upload bandwidth
  - `price_inetd` number, float — Price per GB of download bandwidth
  - `price_min_bid` number, float — Minimum bid price allowed
  - `min_chunk` integer — Minimum number of GPUs that must be rented together
  - `end_date` number, float — Unix timestamp for when the listing expires
  - `credit_discount_max` number, float — Maximum discount rate allowed for prepaid credits

## Response `200`

Successful response

- object
  - `success` boolean
  - `extended` integer — Number of client contracts extended to new end date
  - `msg` string — Status message if success is false

## Other responses

- `400` — Bad Request
- `403` — Forbidden

---

[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)
