Methods / Group, Role, and Rights |
REST
POST
Updates information for a group.
https://[domain]:[port]/AgilePointServer/Admin/UpdateGroup
https://[domain]:[port]/AgilePointService/Admin/UpdateGroup
Name | Description |
---|---|
None | Not Applicable |
Name | Description |
---|---|
Description |
|
Enabled |
|
GroupName |
|
ResponsibleUser |
|
$("#btnUpdateGroup").click(function () { var JSONObject = { GroupName: "test1234", Description: "test123", ResponsibleUser: "DEMO3\\HR", Enabled: true }; $.ajax({ url: "https://mydomain:9011/AgilePointServer/Admin/UpdateGroup", data: JSON.stringify(JSONObject) }); });
public String UpdateGroup(String GroupName, String Description, String ResponsibleUser, boolean Enabled) { String URI = "http://mydomain:9011/AgilePointServer/Admin/UpdateGroup"; HTTPOperations ops = new HTTPOperations(domain, this.userName, password, appID, locale); JSONObject postData = new JSONObject(); try { postData.put("GroupName", GroupName); postData.put("Description", Description); postData.put("ResponsibleUser", ResponsibleUser); postData.put("Enabled", Enabled); return ops.POSTMethod(URI, postData.toString()); } catch (JSONException e1) { e1.printStackTrace(); } return ""; }
public string UpdateGroup(string groupname, string data) { string URL = "http://mydomain:9011/AgilePointServer/Admin/UpdateGroup"; string jsonRequestData = "{ \"GroupName\":\"" + groupname + "\", \"Description\":\"" + "UpdateGroupTeest" + "\", \"ResponsibleUser\":\"" + data + "\", \"Enabled\":\"true\"}"; HTTPOperations ops = new HTTPOperations(domain, this.userName, password, appID, locale); return ops.POSTMethod(URL,jsonRequestData); }
An updated WFGroup.
{ "CreatedBy": "DEMO3\\administrator" "CreatedDate": "\/Date(928149600000)\/", "Description": "test123" "Enabled": true "LastModifiedBy": "DEMO3\\administrator" "LastModifiedDate": "\/Date(928149600000)\/", "Name": "test1234" "ResponsibleUser": "DEMO3\\HR" }
AgilePoint BPMS v5.0 R2 and higher