PUT
Update a resource

Authorizations

Authorization
string
header
required

Bearer token for authentication. Format: 'Bearer {token}'

Headers

X-Workspace-Id
string

Workspace ID (uses default workspace if not provided)

Path Parameters

uuid
string
required

Resource UUID

Body

application/json

Update a resource

plan_type
string

New plan category: 'dev' for development, 'pro' for production

plan_code_name
string

New plan identifier

components
object[]

Updated resource components

Response

Update a resource

Api_V1_Entities_Resource model

uuid
string
required

Unique resource identifier

name
string
required

Resource name

state
string
required

Current state

labels
string[]
required

User-defined labels for identification

total_disk_size
integer<int64>
required

Total disk capacity in bytes

total_ram_size
integer<int64>
required

Total RAM capacity in bytes

total_cpu_size
number<float>
required

Total CPU capacity in cores

total_used_disk_size
integer<int64>
required

Used disk in bytes

total_used_ram_size
integer<int64>
required

Used RAM in bytes

total_used_cpu_size
number<float>
required

Used CPU in cores

available_cpu_size
number<float>
required

Available CPU in cores

available_disk_size
integer<int64>
required

Available disk in bytes

available_ram_size
integer<int64>
required

Available RAM in bytes

assigned
boolean
required

Whether this resource is assigned to any project at all. When true, only the projects listed in project_ids may deploy on it. When false, nobody has assigned it and any project may.

project_ids
string[]
required

UUIDs of the projects this resource is assigned to, limited to the projects you can access. A resource assigned solely to projects you cannot access is not returned to you at all.

created_at
string<date-time>
required

Creation timestamp

updated_at
string<date-time>
required

Last update timestamp

plan
object
required

Api_V1_Entities_Plan model

components
object[]
required

Additional components