Skip to main content
POST
Add a term to your listing
To edit an unsold reservation relist’s existing terms, use Update your listing. To offer another term, use this operation, then delete an unused term if needed. The console and CLI do not provide this add-term operation.

Authorizations

Authorization
string
header
required

Create an organization API key in Account Settings > Developer. Do not send this key to the Kubernetes API server.

Headers

Idempotency-Key
string
required

Required. A unique key of 1 to 200 bytes for this operation, such as a UUID. Retrying with the same key and the same body returns the original response instead of writing again. The key is remembered for 24 hours; reusing it with a different body returns 409 idempotency_conflict. A missing key returns 422 invalid_idempotency_key.

Required string length: 1 - 200

Path Parameters

listingId
string<uuid>
required

Listing ID (capacityListingId or listingId).

Body

application/json
minDurationHours
number
required

Shortest window a buyer can take, in hours equal to whole seconds.

maxDurationHours
number
required

Longest window, in hours equal to whole seconds. Must fit inside the listing window.

pricePerGpuHourMicroUsd
integer<int64>
required

Your asking price: what you receive per GPU-hour (vCPU-hour for CPU capacity), in integer micro-USD.

Required range: x >= 1
renewable
boolean
required
type
enum<string>

reserved (the default) sells fixed windows in the Market. spot offers the nodes' idle time on the order books and requires VM capacity. spot and on-demand are hourly: set both durations to 1 and renewable to true.

Available options:
reserved,
spot,
on-demand
downPaymentCents
integer<int64> | null
Required range: x >= 0

Response

Term added.

listingTermsId
string<uuid>
required

Send as listingTermId in offers and purchases.

capacityListingId
string<uuid>
required
renewable
boolean
required
pricePerGpuHourMicroUsd
integer<int64>
required

The listing's price per unit-hour (GPU-hour, or vCPU-hour for CPU capacity). On relisted capacity this is the seller's asking price before fees; buyers pay the schedule price instead.

type
enum<string> | null
Available options:
reserved,
spot,
on-demand,
null
minDurationHours
number | null
maxDurationHours
number | null
downPaymentCents
integer<int64> | null
preemptNoticeSeconds
integer

Spot and On-demand terms only. The least notice, in seconds, a VM sold on this term gets before its seller can take the node back. 0 means no notice. Spot terms on a relist are always 3600; a value you send is replaced.

Required range: 0 <= x <= 604800
createdAt
string<date-time>