Request Username Update
Start the flow to update the username.
Prerequisites
- Before calling this API, ensure you have created and activated a Tenant whose
appIdmatches theApp-Idheader of this request. The correctappIdvalue can be retrieved from theTenantResourcereturned by the Dashboard API. - You must also have created and activated a
REQUEST_USERNAME_UPDATEtype Route whoseappRouteIdmatches theApp-Route-Idheader, and whose HTTPmethodandpathmatch those of this request. The correctappRouteIdvalue can be retrieved from theRouteResourcereturned by the Dashboard API.
Base URL
https://your-gateway-host
Required Headers
App-Id: app-xxxxxxxx
App-Key: key-xxxxxxxx
App-Route-Id: route-xxxxxxxx
Authorization: Bearer YOUR_ACCESS_TOKEN
Content-Type: application/json
Method and Path
Use the HTTP method and path specified in the activeConfig field of the Route.
Request Body
{
"usernameType" : "ANY",
"username" : "username",
"currentPassword" : "currentPassword"
}Response 200 OK
{
"updateUsernameToken": "updateUsernameToken"
}The returned
updateUsernameTokenmust be used with the Update Username API to complete the username update.
You can use the token immediately or send it to the user, for example by email as part of a confirmation link, so they can complete the operation themselves.
Request Flow

Updated about 1 month ago
Did this page help you?