Postgres Clusters
Attach Cluster to App
Attach a specific cluster to a Fly app. The attachment is created if it does not already exist.
Attach a specific cluster to a Fly app. The attachment is created if it does not already exist.
Authorization
bearerAuth AuthorizationBearer <token>
A Fly.io access token. Create one with fly tokens create.
In: header
Path Parameters
postgres_cluster_id*string
Managed Postgres Cluster ID
Request Body
application/json
Attachment details
app_name*string
Name of the Fly app to attach.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/postgres/string/attachments" \ -H "Content-Type: application/json" \ -d '{ "app_name": "string" }'{ "data": { "app_name": "string", "attached_at": "string", "postgres_cluster_id": "string" }}{ "data": { "app_name": "string", "attached_at": "string", "postgres_cluster_id": "string" }}{ "error": "string"}{ "error": "string"}