Create role

Creates a Postgres role in the specified branch. You can obtain a project_id by listing the projects for your Neon account. You can obtain the branch_id by listing the project's branches. For related information, see Manage roles.

Connections established to the active compute endpoint will be dropped. If the compute endpoint is idle, the endpoint becomes active for a short period of time and is suspended afterward.

Path Params
string
required

The Neon project ID

string
required

The branch ID

Body Params
role
object
required
Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json