Delete role

<< Click to Display Table of Contents >>

Current:  System Integration > WebAPI 

Delete role

Previous pageReturn to chapter overviewNext page

Request address

http://ip:port/bi/api?action=delNode&token=xxxx

Request message

Request parameter

Request Parameters: xmlData(required)

<?xml version="1.0" encoding="UTF-8"?>

<role>

  <name>role1</name>

</role>

parametric description

The request parameter is node information

1) name(required): role name.

Sample

function deleteNode () {

  var xml = getXml();

  $.post("http://" + ip + ":" + port + "/" + project + "/api?action=delNode&token=xxxx",

     {xmlData : xml},

     function(result) {

     writeXml(result);

  });

}

Response message

Response result

 

1) Successful operation

<?xml version="1.0" encoding="UTF-8"?>

<results>

  <result>

     <level>1</level>

     <message>Delete “role1”successfully.</message>

  </result>

</results>

2) Delete failed

<?xml version="1.0" encoding="UTF-8"?>

<results>

  <result>

     <level>6</level>

     <message>Roles “role3” does not exist.</message>

  </result>

</results>

Result description

The response result information is xml. direct parse.

1) Level return type, different values represent different return status, see appendix.

2) Message is the interface operation result information.