<< Click to Display Table of Contents >> Add portal folder |
![]() ![]() ![]() |
Supported version: 8.5.1 and later
Request address |
http://ip:port/bi/api?action=newPortalFolder&token=xxxx |
|
Request message |
Request parameter |
required parameter :xmlData(required) <?xml version="1.0" encoding="UTF-8"?> <info> <path>addFolder</path> <type>portalFolder</type> </info> |
parametric description |
Parameter is node information: 1) path(required):portal folder path 2) type(required):type |
|
Sample |
function newPortalFolder() { var xml = getXml(); $.post("http://" + ip + ":" + port + "/" + project + "/api?action=newPortalFolder&token=xxxx", {xmlData : xml}, function(result) { writeXml(result); }); } |
|
Response message |
Response result |
Successful operation: <?xml version="1.0" encoding="UTF-8"?> <results> <result> <level>1</level> <message>Add successfully.</message> </result> </results> Operation failure <?xml version="1.0" encoding="UTF-8"?> <results> <result> <level>6</level> <message> Folder 'addFolder' already exists. </message> </result> </results> |
Result description |
The response result information is xml. direct parse. Level return type, different values represent different return status 1 indicates success, 6 indicates failure |