Update Registered User

API Type

REST

HTTP Method

POST

Description

Updates user data for a registered user.

URL Format (On Premises)

https://[domain]:[port]/AgilePointServer/Admin/UpdateRegisterUser

URL Format (AgilePoint for Azure)

https://[domain]:[port]/AgilePointService/Admin/UpdateRegisterUser

Request Parameters

Name Description
None Not Applicable

Request Body Properties

Name Description

Department

Definition:
Gets and sets department of the user.
Type
string
Allowed Values:
A valid department name.

EMailAddress

Definition:
Gets and sets the user's e-mail address.
Type
string
Allowed Values:
A valid e-mail address.

FullName

Definition:
Specifies the full name of the user.
Type
string
Allowed Values:
A single line of text.

Locale

Definition:
Specifies the client locale.
Type
string
Allowed Values:
A valid locale in standardized format.
Example:
en-US

Manager

Definition:
Specifies the manager of the user.
Type
string
Allowed Values:
A valid user name.

OnlineContact

Definition:
Gets and sets online contact of the user.
Type
string
Allowed Values:
A valid contact.

RefID

Definition:
Specifies the reference ID for the user.
Type
string
Allowed Values:
A valid reference ID.

TimeZone

Definition:
Specifies the user's time zone.
Type
string
Allowed Values:
A valid time zone.

Title

Definition:
Specifies the job title of the user.
Type
string
Allowed Values:
A single line of text.

UserName

Definition:
The user name for the user.
Type
string
Allowed Values:
A valid user name for a registered AgilePoint user.

JavaScript Code Example

$("#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)
  });                             
});

Java Code Example

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 "";
}

C# Code Example

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);
  }

Output

None.

JSON Response Body Example

The response body is empty.

Supported Versions

AgilePoint BPMS v5.0 R2 and higher