<< Click to Display Table of Contents >> Delete user |
![]() ![]() ![]() |
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"?> <user> <name>test1</name> </user> |
parametric description |
The request parameter is node information 1) name (required): the user's full path, including the user's 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 “test1” successfully.</message> </result> </results> 2) Delete failed <?xml version="1.0" encoding="UTF-8"?> <results> <result> <level>6</level> <message>Users“u1” 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. |