Procurements

Update procurement

Update an existing procurement.

patch/v0/procurements/{id}

Path parameters

idstring required

Procurement ID

Request body

status'active' | 'disabled'
instance_typestring
desired_quantityinteger nullable

Desired quantity of nodes

buy_limit_price_per_gpu_hourinteger nullable

Maximum price per GPU hour in cents

sell_limit_price_per_gpu_hourinteger nullable

Minimum price per GPU hour in cents when selling back

horizoninteger nullable

Planning horizon in minutes. The procurement will try to buy compute ahead of time as to always have at least this amount of time ahead scheduled at a minimum.

Example request

{
  "instance_type": "h100i",
  "desired_quantity": 5,
  "buy_limit_price_per_gpu_hour": 350,
  "sell_limit_price_per_gpu_hour": 50,
  "horizon": 120
}

Response

Successfully updated procurement

object'procurement' required
idstring required
instance_typestring required
status'active' | 'disabled' required
desired_quantityinteger required
buy_limit_price_per_gpu_hourinteger required
sell_limit_price_per_gpu_hourinteger required
horizoninteger required
last_message'insufficient_balance' | 'running' required

Example response

{
  "object": "procurement",
  "id": "proc_W9TRG",
  "instance_type": "h100i",
  "desired_quantity": 1,
  "buy_limit_price_per_gpu_hour": 250,
  "sell_limit_price_per_gpu_hour": 25,
  "horizon": 60,
  "colocation_strategy": {
    "cluster_name": "richmond"
  }
}

Changes

Changed in 1 of the 44 revisions of this API.186

  • b819ba3108b3186See the full diff
    • ▲

      removed the required property from the response with the status

      response-required-property-removed

    • ▲

      removed the required property from the response with the status

      response-required-property-removed

    • ▲

      removed the required property from the response with the status

      response-required-property-removed

    • ▲

      removed the required property from the response with the status

      response-required-property-removed

    • ▲

      removed the required property from the response with the status

      response-required-property-removed

    • ▲

      removed the required property from the response with the status

      response-required-property-removed

    • ▲

      removed the required property from the response with the status

      response-required-property-removed

    • ▲

      removed the required property from the response with the status

      response-required-property-removed

    • ▲

      removed the required property from the response with the status

      response-required-property-removed

    • ▲

      removed the required property from the response with the status

      response-required-property-removed

    • ▲

      removed the required property from the response with the status

      response-required-property-removed

    • ▲

      removed the required property from the response with the status

      response-required-property-removed

    • ▲

      removed the required property from the response with the status

      response-required-property-removed

    • ▲

      removed the required property from the response with the status

      response-required-property-removed

    • ▲

      removed the required property from the response with the status

      response-required-property-removed

    • ▲

      removed the required property from the response with the status

      response-required-property-removed

    • ▲

      removed the required property from the response with the status

      response-required-property-removed

    • ▲

      removed the required property from the response with the status

      response-required-property-removed

    • ○

      added the required property to the response with the status

      response-required-property-added

    • ○

      added the required property to the response with the status

      response-required-property-added

    • ○

      added the required property to the response with the status

      response-required-property-added

    • ○

      added the required property to the response with the status

      response-required-property-added

    • ○

      added the required property to the response with the status

      response-required-property-added

    • ○

      added the required property to the response with the status

      response-required-property-added

    This revision also has 20 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog