<< Click to Display Table of Contents >> Add dashboard folder |
![]() ![]() ![]() |
Request address |
http://ip:port/bi/api?action=addDBFolder&token=xxxx |
|
Request message |
Request parameter |
required parameter:xmlData (required) <?xml version="1.0" encoding="UTF-8"?> <info> <path>test</path> <type>dbfolder</type> </info> |
parametric description |
Parameter is node information : 1)path(required):The path to the dashboard folder. 2)type(required):The type of the dashboard folder that you added does not need to be modified. |
|
Sample |
function addDBFolder() { var xml = getXml(); $.post("http://" + ip + ":" + port + "/" + project + "/api?action=addDBFolder&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>Add successfully.</message> </result> </results> 2)Operation failure <?xml version="1.0" encoding="UTF-8"?> <results> <result> <level>6</level> <message>Folder “test”already exists.</message> </result> </results> or <?xml version="1.0" encoding="UTF-8"?> <results> <result> <level>6</level> <message>Folder not found:“test1”.</message> </result> </results> |
Result description |
|