On this page6 sections
POST/api/auth/update-profileAuthentication
Update Own Profile
Updates the authenticated user's own name, username, or password. Requires an interactive Bearer JWT; denied for M2M integration tokens.
Authentication: Requires Authorization: Bearer <ACCESS_TOKEN> (Supabase JWT, OAuth2 M2M token, or integration token).
Request
Provide the following fields in the request payload.
namestringoptional
Updated display name.
usernamestringoptional
Updated unique username.
currentPasswordstringoptional
Optional current password verification field.
newPasswordstring | nulloptional
New password (minimum 6 characters).
Responses
Select a status code to inspect schema.
Profile updated successfully.application/json
successenum('true')
Success (true).
messagestring
Message.
dataobject | null
Response payload or null.
POST/api/auth/update-profile
curl -X POST "https://api.invoger.com/api/auth/update-profile" \
-H "Authorization: Bearer <ACCESS_TOKEN>" \
-H "Content-Type: application/json" \
-d '{ "name": "Budi Santoso", "username": "budi.santoso" }'Interactive playground
Response
application/json
{
"success": true,
"message": "Profile updated successfully",
"data": {
"id": "e4f8b910-1234-4567-89ab-cdef01234567",
"name": "Budi Santoso",
"username": "budi.santoso"
}
}