POST
/
api
/
v1
/
apps
/
{uuid}
/
addons
/
{id}
/
create_replica
Create a read replica of a PostgreSQL add-on
curl --request POST \
  --url https://app.miget.com/api/v1/apps/{uuid}/addons/{id}/create_replica \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "cpu_size": 123,
  "ram_size": 123
}
'
{
  "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

id
string
required

Add-on ID or UUID

Body

application/json

Create a read replica of a PostgreSQL add-on

cpu_size
number<float>

CPU allocation for the replica (defaults to primary's value)

ram_size
integer<int32>

RAM allocation in megabytes (defaults to primary's value)

Response

Create a read replica of a PostgreSQL add-on

Api_V1_Entities_Message model

message
string
required

Response message