PUT
/
api
/
v1
/
apps
/
{uuid}
/
scaling_profile
Update scaling profile
curl --request PUT \
  --url https://app.miget.com/api/v1/apps/{uuid}/scaling_profile \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "replicas": 123,
  "auto_scaling_enabled": true,
  "auto_min_replicas": 123,
  "auto_max_replicas": 123,
  "scaling_start_time": "<string>",
  "scaling_end_time": "<string>",
  "within_resources": true,
  "cpu_threshold": 123,
  "memory_threshold": 123,
  "period_enabled": true
}
'
{
  "message": "<string>"
}

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

Application UUID

Body

application/json

Update scaling profile

replicas
integer<int32>

Fixed number of running instances (ignored when auto-scaling is enabled)

auto_scaling_enabled
boolean

Enable automatic horizontal scaling based on resource usage

auto_min_replicas
integer<int32>

Minimum number of instances when auto-scaling (at least 1)

auto_max_replicas
integer<int32>

Maximum number of instances when auto-scaling

scaling_start_time
string

Start time for scheduled scaling window (HH:MM format, 24-hour)

scaling_end_time
string

End time for scheduled scaling window (HH:MM format, 24-hour)

within_resources
boolean

Limit scaling to available resource allocation

cpu_threshold
integer<int32>

CPU usage percentage that triggers scale-up (1-100)

memory_threshold
integer<int32>

Memory usage percentage that triggers scale-up (1-100)

period_enabled
boolean

Enable time-based scaling windows

Response

Update scaling profile

Api_V1_Entities_Message model

message
string
required

Response message