Skip to main content
POST
/
v2
/
databases
/
{database}
/
tenants
/
{tenantId}
/
users
create a new user and assigns them to a tenant
curl --request POST \
  --url https://api.example.com/v2/databases/{database}/tenants/{tenantId}/users \
  --header 'Content-Type: application/json' \
  --cookie nile-auth.session-token= \
  --data '
{
  "email": "<string>",
  "password": "<string>",
  "name": "<string>",
  "givenName": "<string>",
  "familyName": "<string>",
  "picture": "<string>"
}
'
{
  "id": "<string>",
  "email": "<string>",
  "name": "<string>",
  "givenName": "<string>",
  "familyName": "<string>",
  "picture": "<string>",
  "created": "2023-11-07T05:31:56Z",
  "emailVerified": "2023-11-07T05:31:56Z",
  "updated": "2023-11-07T05:31:56Z"
}

Authorizations

nile-auth.session-token
string
cookie
required

Session token stored in a cookie after user signs in, prefixed with __Secure if on https

Path Parameters

database
string
required
tenantId
string
required

Body

application/json
email
string
required
password
string
required
name
string
givenName
string
familyName
string
picture
string

Response

update an existing tenant wih a new user

id
string
email
string
name
string
givenName
string
familyName
string
picture
string
created
string<date-time>
emailVerified
string<date-time>
updated
string<date-time>