Edit a Sub Sub Sub Sub Item
Use the EditSubSubSubSubItem call to revise the name or associated color of a sub sub sub sub list item in any WebEOC Nexus list.
| Description | Renames or revises the color of a sub sub sub sub item |
|---|---|
| URL | /lists/[listname]/[listItemName]/[subItemName]/[subsubItemName]/[subsubsubItemName]/[subsubsubsubItemName] |
| Method | POST |
| Parameters |
|
| Return Type | WebEOC ListItem |
| Sample JSON Response |
Copy Code
|
Review the parameter definitions and examples of how to use the EditSubSubSubSubItem endpoint in JavaScript and C# calls.
Parameters
| Variable Name | Type | Description | Required |
|---|---|---|---|
| listName | String | Name of the list in WebEOC Nexus that contains the sub 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 sub item you want to edit | True (URL) |
| subItemName | String | Name of the sub item that contains the sub sub sub sub item you want to edit | True (URL) |
| subSubItemName | String | Name of the sub sub item that contains the sub sub sub sub item you want to edit | True (URL) |
| subsubSubItemName | String | Name of the sub sub sub item that contains the sub sub sub sub item you want to edit | True (URL) |
| subsubsubsubItemName | String | Name of the sub sub sub sub item you want to edit | True (URL) |
| name | String | Name for the sub sub sub sub item | True |
| color | String | New color for the sub 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 AddSubSubSubSubItem endpoint, contains several unique, custom objects.
| 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
var list = {
name: "SubItem01_Updated"
};
await
fetch(`${baseUrl}/lists/list01/listitem01/subitem01/subsubitem01/subsubsubitem01/subsubsubsubitem01`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(list)
})
.then((response) => response.json())
C# Call
public async Task<WebEOCListItem> EditSubSubSubSubItem()
{
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/subsubsubsubitem01",
new StringContent(serializedInformation, Encoding.UTF8, "application/json"));
var data = await response.Content.ReadAsStringAsync();
return JsonConvert.DeserializeObject<WebEOCListItem>(data);
}
}
Related Concepts
Related Tasks