Skip to main content
PUT
Defragment Machine GPU Offers

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Body

application/json
machine_ids
array

List of machine IDs whose GPU offer assignments should be recomputed. Accepts an integer, a comma-separated string, or a JSON array of integers.

Example:

Response

Returns {success: true, defragmented: [...], n0, n1, n2} on success, or {success: false, defragmented: null} if no valid machine_ids provided

success
boolean

Whether defragmentation was performed

defragmented
integer[]

List of machine IDs that were defragmented

n0
integer

Count metric from recompute operation

n1
integer

Count metric from recompute operation

n2
integer

Count metric from recompute operation