Skip to main content
POST
Create User

Authorizations

Authorization
string
header
required

A Fly API token with access to the requested organization or resource. Send it as Authorization: Bearer <Fly API token>.

Path Parameters

postgres_cluster_id
string
required

Managed Postgres Cluster ID

Body

application/json

User details

role
enum<string>
required

Role to grant the user.

Available options:
schema_admin,
writer,
reader
Example:

"writer"

username
string
required

Name for the new user. Must start and end with a lowercase alphanumeric character and may contain hyphens and underscores, up to 63 characters.

Example:

"app_user"

Response

Created

data
object