End point: [RemoteTM URL]/users
Send a POST request with these headers:
Include these parameters in a JSON body:
command |
updateUser |
id |
The ID of the user to update |
name |
Updated user name |
role |
'SA', 'PM' or 'TR' |
email |
Updated email |
Example:
{
"command": "updateUser",
"id": "manager",
"name": "Principal Manager",
"role": "PM",
"email": "pm@mydomain.com"
}
RemoteTM responds with a JSON object.
On success, field 'status' is set to 'OK'. Example:
{
"status": "OK"
}
On error, field 'status' is set to 'Error' and field 'reason' contains the error cause.
Example:
{
"status": "Error",
"reason": "Unknown user"
}