Edit a Sub Sub Sub Item

Use the EditSubSubSubItem call to revise the name or associated color of a sub sub sub list item in any WebEOC Nexus list.

EditSubSubSubItem endpoint description
Description Renames or revises the color of a sub sub sub item
URL /lists/[listname]/[listItemName]/[subItemName]/
[subsubItemName]/[subsubsubItemName]
Method POST
Parameters
  • listName
  • listItemName
  • subItemName
  • subSubItemName
  • subSubSubItemName
  • name
  • color
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_Updated"
                                }
                            ]
                        }
                    ]
                }
            ]
        }
    ]
}
                        

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

Parameters

EditSubSubSubItem endpoint parameters
Variable Name Type Description Required
listName String Name of the list in WebEOC Nexus that contains the sub sub sub item you want to edit True (URL)
listItemName String Name of the list item in WebEOC Nexus that contains the sub sub sub item you want to edit True (URL)
subItemName String Name of the sub item that contains the sub sub sub item you want to edit True (URL)
subSubItemName String Name of the sub sub item that contains the sub sub sub item you want to edit True (URL)
subsubSubItemName String Name of the sub sub sub item you want to edit True (URL)
name String Name for the sub sub sub item True
color String New color for the sub sub sub item False

If you do not select or specify a color attribute, a color is not associated with the list item; any existing values in WebEOC Nexus are not affected.

WebEOCListItem: Custom Objects

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

Custom objects variables
Variable 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
var list = {
name: "SubItem01_Updated"
};
await fetch(`${baseUrl}/lists/list01/listitem01/subitem01/subsubitem01/subsubsubitem01`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' }, 
body: JSON.stringify(list)
})
.then((response) => response.json())

C# Call

Copy Code
public async Task<WebEOCListItem> EditSubSubSubItem()
{
using (var httpClient = new HttpClient(httpClientHandler))
{
var list = new
{
name = "SubItem01_Updated"
};
var serializedInformation = JsonConvert.SerializeObject(list); 
var response = await
httpClient.PostAsync($"{baseUrl}/lists/list01/listitem01/subitem01/subsubitem01/subsubsubitem01",
new StringContent(serializedInformation, Encoding.UTF8, "application/json"));
var data = await response.Content.ReadAsStringAsync(); 
return JsonConvert.DeserializeObject<WebEOCListItem>(data);
}
}