Get PortalCell & PortalCellFolder

<< Click to Display Table of Contents >>

Current:  System Integration > WebAPI 

Get PortalCell & PortalCellFolder

Previous pageReturn to chapter overviewNext page

Request address

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

Request message

Request parameter

required parameter : xmlData(required)

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

  <info>

    <user>admin</user>

</info>

parametric description

Parameter is node information:

user(optional):  user is the target user you want to view.

Sample

function updatePortalCellTree() {

        var xml = getXml();

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

           {xmlData : xml},

           function(result) {

           writeXml(result);

        });

     }

Response message

Response result

1)Successful operation

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

<results>

   <assetref>

       <name>webapiFolder</name>

       <type>portalCellFolder</type>

       <path>webapiFolder</path>

   </assetref>

   <assetref>

       <name>portalcell1</name>

       <type>portalcell</type>

       <path>portalcell1</path>

   </assetref>

</results>

2)Operation failure

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

<results>

  <result>

     <level>6</level>

     <message>User 'u1' is not found.</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.