Description
Update User Information web service is used to update user information like firstName, lastName.
Parameters
The following parameters are required in this web service.
organizationId: Defines the Organization Id of an Organization where that user exist.
username: Defines a unique username which will gives the existing user to be update.
firstName: Defines the first name to be updated of existing user on given username.(Optional)
lastName: Defines the last name to be updated of existing user on given username.(Optional)
Update User Information curl command (Example)
curl --insecure -H "accept:application/json" -H "Content-Type:application/json" -H "X-Auth-Token:XXXXXXXXXXXX" -d '{organizationId: "XXXXXXXX-ddc9-481c-adad-XXXXXXXXXXXXXX",username: "email@email.com",firstName:"Test",lastName:"XYZ"}' https://app.genrocket.com/rest/user/updateURL Request
https://app.genrocket.com/rest/user/update
Payload Request (Example)
{
organizationId:"xxxxxxxx-ddc9-481c-adad-xxxxxxxxxxx",
username:"email@email.com",
firstName: "Test",
lastName: "XYZ"
}Payload OK Response (Example)
{
"errors": { },
"fields": {
"externalId": "xxxxxxxxx-7001-4c4f-b5c8-xxxxxxxxxxxx",
"firstName": "Test",
"lastName": "XYZ",
"username": "email@email.com",
"enabled": true,
"roles":
[
"ROLE_USER"
]
},
"success": true
}