Remove Role

API Type

REST

HTTP Method

POST

Description

Removes a role from the AgilePoint system.

URL Format (On Premises)

https://[domain]:[port]/AgilePointServer/Admin/RemoveRole/[roleName]

URL Format (AgilePoint for Azure)

https://[domain]:[port]/AgilePointService/Admin/RemoveRole/[roleName]

Request Parameters

Name Description

roleName

Definition:
The name of a role.
Type
string
Allowed Values:
A valid role name.

JavaScript Code Example

$("#btnRemoveRole").click(function () {
  $.ajax({
    url: "https://mydomain:9011/AgilePointServer/Admin/
                  RemoveRole/testRole"
  });
});

Java Code Example

public String RemoveRole(String roleName) {

  String URI = "http://mydomain:9011/AgilePointServer/Admin/RemoveRole/"
                       + roleName;

  HTTPOperations ops = new HTTPOperations(domain, this.userName,
                       password, appID, locale);

  JSONObject postData = new JSONObject();

  return ops.POSTMethod(URI, postData.toString());
}

C# Code Example

public string RemoveRole()
  {
    string URL = "http://mydomain:9011/AgilePointServer/Admin/
                         RemoveRole/myrole";

    HTTPOperations ops = new HTTPOperations(domain, this.userName, 
                         password, appID, locale);

    return ops.GetData(URL);
  }

Output

None.

JSON Response Body Example

The response body is empty.

Supported Versions

AgilePoint BPMS v5.0 R2 and higher