Skip to main content
PUT
Attach or update process disk

Authorizations

Authorization
string
header
required

API key authentication. Pass your API key as a Bearer token in the Authorization header.

Path Parameters

id
string<uuid>
required

Application identifier

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Example:

"fb5e5168-4281-4bec-94c5-0d1584e9e657"

process_id
string<uuid>
required

Process identifier

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Example:

"fb5e5168-4281-4bec-94c5-0d1584e9e657"

Body

application/json
resource_type_id
string
required

Identifier of the disk resource type, which sets the disk size. Use the List Disk Resource Types endpoint to retrieve available options. A disk can grow but cannot shrink.

Minimum string length: 1
Example:

"fb5e5168-4281-4bec-94c5-0d1584e9e657"

mount_path
string
required

Path inside the container where the disk is mounted. Only letters, numbers, -, _, . and / are allowed, and /etc, /var, /lib, /usr/local, /mnt, /root, /app, /workspace and /layers themselves cannot be used.

Example:

"/var/lib/data"

Response

object | null

Persistent disk attached to the process, which keeps its data across deployments and restarts. null when the process has no disk.

Persistent disk attached to the process, which keeps its data across deployments and restarts. null when the process has no disk.

resource_type_id
string
required

Unique identifier for the disk resource type

Example:

"fb5e5168-4281-4bec-94c5-0d1584e9e657"

resource_type_name
string
required

Name of the disk resource type (disk size)

Example:

"ps1"

size_gib
integer
required

Disk size in GiB

Required range: 1 <= x <= 9007199254740991
Example:

10

mount_path
string | null
required

Path inside the container where the disk is mounted

Example:

"/var/lib/data"