PUT
/
api
/
v1
/
services
/
{id}
Update a service
curl --request PUT \
  --url https://app.miget.com/api/v1/services/{id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "label": "<string>",
  "ram_size": 123,
  "disk_size": 123,
  "cpu_size": 123,
  "public_access": "0"
}
'
{
  "uuid": "<string>",
  "name": "<string>",
  "label": "<string>",
  "service_type": "<string>",
  "project_id": "<string>",
  "miget_id": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

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

id
string
required

Service ID

Body

application/json

Update a service

label
string

Human-readable display name for the service

ram_size
number<float>

RAM allocation in MiB (e.g., 64, 128, 256)

disk_size
number<float>

Disk storage in GiB (e.g., 1, 5, 10)

cpu_size
number<float>

CPU allocation in cores (e.g., 0.1, 0.25, 0.5)

public_access
enum<string>

Enable public internet access: '0' disabled, '1' enabled. For postgres type.

Available options:
0,
1

Response

Update a service

Api_V1_Entities_Service model

uuid
string
required

Service UUID

name
string
required

Service name

label
string
required

Display name

service_type
string
required

Service type (postgres, shared_storage)

project_id
string
required

Associated project UUID

miget_id
string
required

Assigned resource UUID

created_at
string<date-time>
required

Creation timestamp

updated_at
string<date-time>
required

Last update timestamp