Users / update
Update user fields (e.g., isFirstLogin).
API Overview
Path: /api/users/update — Method: POST
Auth: session-cookie
Example: curl -X POST --cookie 'next-auth.session-token=...' https://www.advancelytics.com/api/users/update -H 'Content-Type: application/json' -d '{"isFirstLogin":false}'
Request Details
No headers required
No path params required
No query required
Body
- isFirstLogin(boolean)— Set to false after setup
Example JSON
{
"isFirstLogin": false
}Responses
- 200Updated
{"success":true}
Notes & Tips
- Ensure headers match exactly (e.g.,
x-apikey). - Use
Content-Type: application/jsonfor JSON bodies. - For Bearer auth, you can provide either a session JWT or an opaque API key where supported.