Skip to main content
PATCH
Update project machine pool grant

Authorizations

Authorization
string
header
required

An opaque Omnara personal or organization bearer token.

Path Parameters

orgID
string
required

Organization ID (org_...).

Pattern: ^org_[a-z2-7]{26}$
projectID
string
required

Project ID (proj_...).

Pattern: ^proj_[a-z2-7]{26}$
poolGrantID
string
required

Project machine pool grant ID (pmpg_...).

Pattern: ^pmpg_[a-z2-7]{26}$

Body

application/json

Update a project machine pool grant. Omitted fields keep their current values. Null clears an override so the grant follows the machine pool again. Overlay objects and metadata are replaced whole when present; send an empty object to clear them.

description
string

Free-form note stored with the grant.

default_machine_cpu
integer<int32> | null

Default CPU count for machines this project creates from the pool, overriding the pool's default.

Required range: 1 <= x <= 2147483647
default_machine_memory_mb
integer<int32> | null

Default memory in MB for machines this project creates from the pool, overriding the pool's default.

Required range: 1 <= x <= 2147483647
default_machine_env_overlay
object

Env overlay merged over the pool's default_machine_env for machines this project creates from the pool afterward; a null entry removes the key.

default_machine_secret_env_overlay
object

Secret env overlay merged over the pool's default_machine_secret_env for machines this project creates from the pool afterward; a null entry removes the key.

default_machine_provider_options_overlay
object

Provider-specific options layered over the pool's provider options for this project's machines.

default_cwd
string

Default working directory for processes on this project's machines created from the pool after this change.

max_total_machines
integer<int32> | null

Maximum number of live machines this project can have from the pool.

Required range: 0 <= x <= 2147483647
max_total_cpu
integer<int32> | null

Maximum total CPU across this project's live machines from the pool.

Required range: 0 <= x <= 2147483647
max_total_memory_mb
integer<int32> | null

Maximum total memory in MB across this project's live machines from the pool.

Required range: 0 <= x <= 2147483647
min_machine_cpu
integer<int32> | null

Smallest CPU count one of this project's machines can request.

Required range: 0 <= x <= 2147483647
min_machine_memory_mb
integer<int32> | null

Smallest memory in MB one of this project's machines can request.

Required range: 0 <= x <= 2147483647
max_machine_cpu
integer<int32> | null

Largest CPU count one of this project's machines can request.

Required range: 1 <= x <= 2147483647
max_machine_memory_mb
integer<int32> | null

Largest memory in MB one of this project's machines can request.

Required range: 1 <= x <= 2147483647
delete_after_idle_minutes

Idle minutes before deleting a machine created through this grant. Use 0 to disable for this grant; null restores inheritance from the pool; omitted leaves it unchanged.

Required range: 0 <= x <= 2147483647
metadata
object

Arbitrary key-value labels stored with the resource.

Response

Project machine pool grant updated.

id
string
required

Identifies the pool grant.

Pattern: ^pmpg_[a-z2-7]{26}$
org_id
string
required

Organization that owns the grant.

Pattern: ^org_[a-z2-7]{26}$
project_id
string
required

Project the grant lets create machines from the pool.

Pattern: ^proj_[a-z2-7]{26}$
machine_pool_id
string
required

Pool the project may create machines from.

Pattern: ^mpo_[a-z2-7]{26}$
description
string
required

Free-form note about the grant; empty if none was set.

default_machine_cpu
integer<int32> | null
required

Default vCPUs for this project's machines from the pool; null uses the pool default.

Required range: 1 <= x <= 2147483647
default_machine_memory_mb
integer<int32> | null
required

Default memory in MB for this project's machines from the pool; null uses the pool default.

Required range: 1 <= x <= 2147483647
default_machine_env_overlay
object
required

Env overlay merged over the pool's default_machine_env for machines materialized through this grant; a null entry removes the key.

default_machine_secret_env_overlay
object
required

Secret env overlay merged over the pool's default_machine_secret_env for machines materialized through this grant; a null entry removes the key.

default_machine_provider_options_overlay
object
required

Provider options layered over the pool's for this project's machines.

default_cwd
string
required

Working directory for this project's machines from the pool; empty uses the pool default.

max_total_machines
integer<int32> | null
required

Most live machines this project can have from the pool; null means only the pool limit applies.

Required range: 0 <= x <= 2147483647
max_total_cpu
integer<int32> | null
required

Most vCPUs across this project's live pool machines; null means only the pool limit applies.

Required range: 0 <= x <= 2147483647
max_total_memory_mb
integer<int32> | null
required

Most memory in MB across this project's live pool machines; null means only the pool limit applies.

Required range: 0 <= x <= 2147483647
min_machine_cpu
integer<int32> | null
required

Fewest vCPUs one of this project's machines can request; null uses the pool minimum.

Required range: 0 <= x <= 2147483647
min_machine_memory_mb
integer<int32> | null
required

Least memory in MB one of this project's machines can request; null uses the pool minimum.

Required range: 0 <= x <= 2147483647
max_machine_cpu
integer<int32> | null
required

Most vCPUs one of this project's machines can request; null uses the pool maximum.

Required range: 1 <= x <= 2147483647
max_machine_memory_mb
integer<int32> | null
required

Most memory in MB one of this project's machines can request; null uses the pool maximum.

Required range: 1 <= x <= 2147483647
delete_after_idle_minutes
required

Idle minutes before deleting a machine created through this grant. Zero disables deletion for this grant; null inherits the pool default.

Required range: 0 <= x <= 2147483647
metadata
object
required

Key-value metadata attached to the grant.

created_at
string<date-time>
required

When the grant was created.

updated_at
string<date-time>
required

When the grant last changed.