POST
/
api
/
v1
/
services
/
{id}
/
create_replica
Create a read replica of a PostgreSQL service
curl --request POST \
  --url https://app.miget.com/api/v1/services/{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

id
string
required

Service ID

Body

application/json

Create a read replica of a PostgreSQL service

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 service

Api_V1_Entities_Message model

message
string
required

Response message