| Methods / Administrative Service | |
REST
POST
Updates user data for a registered user.
https://[domain]:[port]/AgilePointServer/Admin/UpdateRegisterUser
https://[domain]:[port]/AgilePointService/Admin/UpdateRegisterUser
| Name | Description |
|---|---|
| None | Not Applicable |
| Name | Description |
|---|---|
Department |
|
EMailAddress |
|
FullName |
|
Locale |
|
Manager |
|
OnlineContact |
|
RefID |
|
TimeZone |
|
Title |
|
UserName |
|
$("#btnUpdateRegisteredUser").click(function () {
var JSONObject = {
Department: "HR",
EMailAddress: "admin@tusca.com",
FullName: "Administrator",
Locale: null,
Manager: "demo3\\administrator",
OnlineContact: null,
RefID: null,
TimeZone: null,
Title: "SHR",
UserName: "admin"
};
$.ajax({
url: "http://mydomain:9011/AgilePointServer/Admin/UpdateRegisterUser",
data: JSON.stringify(JSONObject)
});
});
public String UpdateRegisterUser(String Department, String EMailAddress,
String FullName, String Locale, String Manager,
String OnlineContact, String RefID, String TimeZone, String Title,
String UserName) {
String URI = "http://mydomain:9011/AgilePointServer/Admin/UpdateRegisterUser";
HTTPOperations ops = new HTTPOperations(domain, this.userName,
password, appID, locale);
try {
JSONObject postData = new JSONObject();
postData.put("Department", Department);
postData.put("EMailAddress", EMailAddress);
postData.put("FullName", FullName);
postData.put("Locale", Locale);
postData.put("Manager", Manager);
postData.put("OnlineContact", OnlineContact);
postData.put("RefID", RefID);
postData.put("TimeZone", TimeZone);
postData.put("Title", Title);
postData.put("UserName", UserName);
return ops.POSTMethod(URI, postData.toString());
} catch (JSONException e1) {
e1.printStackTrace();
}
return "";
}
public string UpdateRegisterUser()
{
string URI = "http://mydomain:9011/AgilePointServer/Admin/UpdateRegisterUser";
string jsonRequestData = "{
\"Department\":\"\",
\"EMailAddress\":\"peter.parker@agilepoint.com\",
\"FullName\":\"Peter Parker\",
\"Locale\":\"\",
\"Manager\":\"\",
\"OnlineContact\":\"\",
\"RefID\":\"\",
\"TimeZone\":\"\",
\"Title\":\"\",
\"UserName\":\"MYDOMAIN\\\\AAMAadmi\"}";
HTTPOperations ops = new HTTPOperations(domain, this.userName,
password, appID, locale);
return ops.POSTMethod(URI, jsonRequestData);
}
None.
The response body is empty.
AgilePoint BPMS v5.0 R2 and higher