cURL
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" }
Creates a brand new user on a tenant
Session token stored in a cookie after user signs in, prefixed with __Secure if on https
update an existing tenant wih a new user
Was this page helpful?