Add a Sub Sub Sub Sub Item

Use the AddSubSubSubSubItem call to add a sub sub sub sub item to any list in WebEOC Nexus. You can add sub sub sub sub items through the URL, if applicable, or when you create a new list.

AddSubSubSubSubItem endpoint description
Description Adds a sub sub sub sub item to a list in WebEOC Nexus
URL

/lists/[listname]/[listItemName]/[subItemName]/[subsubItemName]/[subsubsubItemName]/[subsubsubsubItemName]/

Method POST
Parameters
  • listName
  • listItemName
  • subItemName
  • subSubItemName
  • subSubSubItemName
  • subSubSubSubItemName
Return Type WebEOC ListItem
Sample JSON Response
Copy Code

    
{
    "color": null,
    "name": "List01",
    "subitems": [
        {
            "color": null,
            "name": "ListItem01",
            "subitems": [
                {
                    "color": null,
                    "name": "SubItem01_Added",
                    "subitems": [
                        {
                            "color": null,
                            "name": "SubsubItem01_Added",
                            "subitems": [
                                {
                                    "color": null,
                                    "name": "SubsubSubItem01_Added"
                                }
                            ]
                        }
                    ]
                }
            ]
        }
    ]
}
                                                

Review the parameter definitions and examples of how to use the AddSubSubSubSubItem endpoint in JavaScript and C# calls. You can either provide the [subSubSubSubItemName] in the URL or in the body of a request inside the WebEOCListItem object.

Parameters

AddSubSubSubSubItem parameters
Variable Name Type Description Required
listName String Name of the list in WebEOC Nexus to which you want to add a sub sub sub sub item True (URL)
listitemName String Name of the list item in WebEOC Nexus to which you want to add a sub sub sub sub item True (URL)
subItemName String Name of the sub item you want to add a sub sub sub sub item to True (URL)
subSubItemName String Name of the sub sub item you want to add a sub sub sub sub sub item to True (URL)
subSubSubItemName String Name of the sub sub sub item you want to add a sub sub sub sub item to True (URL)
subSubSubSubItemName String Name of the sub sub sub sub item to add True (URL)

WebEOCList: Custom Objects

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

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

Examples

JavaScript Call

Copy Code
await 
fetch(`${baseUrl}/lists/list01/listitem01/subitem01/subsubitem01/subsubsubitem01/subsubsubsubitem01_Added`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' }, 
body: JSON.stringify(data)
})
.then((response) => response.json())

C# Call

Copy Code
public async Task<WebEOCListItem> AddSubSubSubSubItem()
{
using (var httpClient = new HttpClient(httpClientHandler))
{
var response = await 
httpClient.PostAsync($"{baseUrl}/lists/list01/listitem01/subitem01/subsubitem01/subsubsubitem01/subsubsubsubitem01_Added", null);
var data = await response.Content.ReadAsStringAsync(); 
return JsonConvert.DeserializeObject<WebEOCListItem>(data);
}
}