Click or drag to resize

AssetServicesGetAssetRoots Method


Retrieves the list of root asset folders by their IDs

Namespace:  IngeniuxCMService
Assembly:  IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.3.169
Syntax
public XHRServiceResponseGeneric<FolderAssetChildren> GetAssetRoots(
	string[] rootIds
)

Parameters

rootIds
Type: SystemString
Array of IDs of the root assets folder to retrieve, when empty, returns all root folders

Return Value

Type: XHRServiceResponseGenericFolderAssetChildren

Information of asset root folders

Examples

Sample JSON return

JavaScript
{
    "Assets": [
      {
        "name": "Documents",
        "hasChildren": false,
        "isFolder": true,
        "objectId": "af/25",
        "readOnly": false
      },
      {
        "name": "Home",
        "hasChildren": false,
        "isFolder": true,
        "objectId": "af/259",
        "readOnly": false
      },
      {
        "name": "Images",
        "hasChildren": true,
        "isFolder": true,
        "objectId": "af/240",
        "readOnly": false
      },
      {
        "name": "Images_3",
        "hasChildren": true,
        "isFolder": true,
        "objectId": "af/1",
        "readOnly": false
      },
      {
        "name": "Views",
        "hasChildren": true,
        "isFolder": true,
        "objectId": "af/19",
        "readOnly": false
      },
      {
        "name": "Views",
        "hasChildren": true,
        "isFolder": true,
        "objectId": "af/22",
        "readOnly": false
      }
    ]
  }
See Also