cURL
curl --request PUT \ --url https://api.example.com/v2/databases/{database}/me \ --header 'Content-Type: application/json' \ --cookie nile-auth.session-token= \ --data ' { "name": "Jane Doe", "familyName": "Doe", "givenName": "Jane", "picture": "https://example.com/avatar.jpg", "emailVerified": true } '
{ "id": "<string>", "tenants": [ "<string>" ], "email": "<string>", "name": "<string>", "givenName": "<string>", "familyName": "<string>", "picture": "<string>", "emailVerified": "2023-11-07T05:31:56Z", "created": "2023-11-07T05:31:56Z", "updated": "2023-11-07T05:31:56Z" }
Update the principal associated with the provided session
Session token stored in a cookie after user signs in, prefixed with __Secure if on https
"Jane Doe"
"Doe"
"Jane"
"https://example.com/avatar.jpg"
Whether the user's email is verified
Identified user
Was this page helpful?