Skip to main content
PUT
/
api
/
workspaces
/
{id}
/
resources
Update workspace resources.
curl --request PUT \
  --url https://api.rigbox.dev/api/workspaces/{id}/resources \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "disk_size_mb": 1,
  "ram_mb": 1,
  "vcpu_count": 1
}
'
{
  "message": "<string>",
  "vm": {
    "created_at": "2023-11-07T05:31:56Z",
    "disk_size_mb": 1,
    "id": "<string>",
    "image": "<string>",
    "name": "<string>",
    "node_id": "<string>",
    "ram_mb": 1,
    "status": "provisioned",
    "updated_at": "2023-11-07T05:31:56Z",
    "user_id": "<string>",
    "vcpu_count": 1,
    "env_vars": {},
    "ip_address": "<string>",
    "service_spec_ids": [
      "<string>"
    ],
    "setup_script_ids": [
      "<string>"
    ],
    "template_id": "<string>"
  }
}
Resource changes take effect on the next start. The workspace must be stopped first.

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Workspace ID

Body

application/json
disk_size_mb
integer<int32> | null
Required range: x >= 0
ram_mb
integer<int32> | null
Required range: x >= 0
vcpu_count
integer<int32> | null
Required range: x >= 0

Response

200 - application/json

Workspace resources updated

message
string
required
vm
object
required