Update user username
PUT
Change the current user username by providing current password and new username
header
X-API-Key<token>API key authentication using X-API-Key header
Change the current admin username
application/json- body
Change the current admin username
currentPassword*stringCurrent password for verification
Length
8 <= lengthnewUsername*stringNew username to set
Length
3 <= length <= 255Default Response
application/json- response
Standard success message response
message*stringHuman-readable result message
curl -X PUT 'http://localhost:3003/v1/users/update-username' \ -H 'Content-Type: application/json' \ -d '{ "currentPassword": "stringst", "newUsername": "string"}'Example Response
{ "message": "string"}