Skip to main content
POST
Create database user

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Scopes

server:create-databases

Allow members to create databases and database users

Path Parameters

organization
string
required

The organization slug

server
integer
required

The server ID

Body

application/json
name
string
required

The name of the database user to create.

Example:

"james"

password
string
required

The password for the database user.

Maximum string length: 255
Example:

"password"

database_ids
integer[]

The IDs of the databases to assign the user to.

Example:
read_only
boolean

Whether the user should have read-only access to the databases.

Example:

true

Response

DatabaseUserResource

data
DatabaseUserResource · object
required