Postgres Clusters
Update User Role
Update a specific Postgres user's role within a cluster.
Update a specific Postgres user's role within a cluster.
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
username*string
Postgres User Name
Request Body
application/json
Role details
role*string
New role for the user.
Response Body
application/json
application/json
application/json
curl -X PATCH "https://example.com/v1/postgres/string/users/string" \ -H "Content-Type: application/json" \ -d '{ "role": "reader" }'Empty
{ "error": "string"}{ "error": "string"}{ "error": "string"}