To create a new user in your PostgreSQL cluster, send a POST request and set the login password.
POST
Use the following endpoint to create a new user in your PostgreSQL cluster:
https://api.ionos.com/databases/postgresql/clusters/{clusterId}/users
Note: The sample UUID is 498ae72f-411f-11eb-9d07-046c59cc737e.
498ae72f-411f-11eb-9d07-046c59cc737e
curl --request POST \ --user "clientname@ionos.com:Mb2.r5oHf-0t" \ --header "Content-Type: application/json" \ --data-binary '{ "properties":{ "username": "newuser", "password": "pwMin10Chars" } }' \
The created user is returned.
Last updated 4 months ago
Was this helpful?
{ "id": "b35402eb-bd7b-512d-92c9-9726db47c101", "properties": { "system": false, "username": "newuser" }, "type": "user" }