Description

By using this web service manager can change the current Username with New Username of GenRocket User. 

Parameters

The following parameters are required in this web service.


username: Defines a unique username which gives existing GenRocket User.

newUsername: Defines a unique username which will replace current username of existing User.


Change Username curl command (Example)

curl --insecure -H "accept:application/json" -H "Content-Type:application/json" -H "X-Auth-Token:XXXX" -d '{username: "email@email.com",newUsername:"abc@email.com"}' https://app.genrocket.com/rest/user/changeUsername


URL Request

https://app.genrocket.com/rest/user/changeUsername


Payload Request (Example)

{  
   username:"email@email.com",
   newUsername:"abc@email.com"
}


Payload OK Response (Example)

{
  "errors": {
  },
  "fields": {
    "externalId": "XXXXXX-7001-4c4f-b5c8-XXXXXXXXXXX",
    "firstName": "Test",
    "lastName": "XYZ",
    "username": "abc@email.com",
    "enabled": true,
    "roles": 
    [
      "ROLE_USER"
    ]
  },
  "success": true
}