POST
Create a new 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)

Body

application/json

Create a new resource

plan_code_name
string
required

Plan identifier, must match a code_name returned by GET /api/v1/plans (e.g., 'miget_hobby_0', 'miget_pro_1')

region_code
string
required

Deployment region code (e.g., 'eu-central-1', 'us-east-1')

plan_type
string

Ignored — the plan is resolved from plan_code_name alone. Kept for backward compatibility

components
object[]

Additional resource components to add

Response

Create a new 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