Postgres Clusters

Create a Postgres user within a specific cluster. Fetch the generated password from the credentials endpoint.

post/v1/postgres/{postgres_cluster_id}/users

Request

  • Base URL
    https://api.machines.dev
  • URL
    https://api.machines.dev/v1/postgres/{postgres_cluster_id}/users
  • Auth
    HTTP bearer

Path parameters

postgres_cluster_idstring required

Managed Postgres Cluster ID

Request body

role'schema_admin' | 'writer' | 'reader' required

Role to grant the user.

usernamestring 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 request

{
  "role": "writer",
  "username": "app_user"
}

Response

Created

Changes

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      the endpoint scheme security FlyBearerAuth was removed from the API