PATCH
/
projects
/
{projectId}
/
disks
/
{id}
curl --request PATCH \
  --url https://api.mkinf.io/v0.1/projects/{projectId}/disks/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "size": "10GiB"
}'
{
  "operation": {
    "completed_at": "2021-12-03T19:59:34Z",
    "metadata": {},
    "operation_id": "F6EF489C-086E-458D-B812-7962964A28C9",
    "result": {},
    "started_at": "2021-12-03T19:58:34Z",
    "state": "IN_PROGRESS"
  }
}

Update a disk’s size. Size should be specified in GiB or TiB format (e.g., “10GiB”).

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

projectId
string
required

Project id

id
string
required

Disk id

Body

application/json

Response

200 - application/json

The response is of type object.