Postgres Clusters

Update User Role

Changed on

Update a specific Postgres user's role within a cluster.

patch/v1/postgres/{postgres_cluster_id}/users/{username}

Request

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

Path parameters

postgres_cluster_idstring required

Managed Postgres Cluster ID

usernamestring required

Postgres User Name

Request body

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

New role for the user.

Example request

{
  "role": "reader"
}

Response

No Content

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

      the endpoint scheme security FlyBearerAuth was removed from the API