Get Sub Sub Items

To review all sub sub items associated with a sub item in a WebEOC Nexus list, use the GetSubSubItemsList call. Sub sub items are not returned by this method.

GetSubSubItemsList endpoint description
Description Returns a list of sub sub items associated with a sub item in a WebEOC Nexus list
URL /lists/[listName]/[listItemName]/[subItemName]/listitems
Method GET
Parameters
  • listName
  • listItemName
  • subItemName
Return Type WebEOC ListItem array
Sample JSON Response
Copy Code
[
    {
        "color": "#FF9900",
        "name": "SubSubItem01",
        "subitems": null
    },
    {
        "color": "#000000",
        "name": "SubSubItem02",
        "subitems": null
    }
]
                        

Review the parameter definitions and examples of how to use the GetSubSubItemsList endpoint in JavaScript and C# calls.

Parameters

GetSubSubItemsList endpoint parameters
Variable Name Type Description Required
listName String Name of the WebEOC Nexus list you want to retrieve information on True (URL)
listitemName String Name of the list item to be renamed True (URL)
subItemName String Name of the sub item True (URL)

WebEOCList: Custom Objects

The WebEOCListItem type, returned when using the GetSubSubItemsList endpoint, contains several unique, custom objects.

Custom objects members
Member Name Type Description
name String Name of the list item
color Hex color code string Color associated with the list item
subitems List of WebEOCListItems Recursive list of itself

 

Examples

JavaScript Call

Copy Code
await fetch(`${baseUrl}/lists/list01/listitem01/subitem01/listitems`)
.then((response) => response.json())

C# Call

Copy Code
public async Task<WebEOCListItem[]> GetSubSubItemsList()
{
using (var httpClient = new HttpClient(httpClientHandler))
{
var response = await 
httpClient.GetAsync($"{baseUrl}/lists/list01/listitem01/subitem01/listitems");
var data = await response.Content.ReadAsStringAsync();
return JsonConvert.DeserializeObject<WebEOCListItem[]>(data);
}
}