Move Board Data to a Different Incident
Move a list of board records and all descendant records to a new incident by boardName, inputViewName, incident, and data ids using the /board/{boardName}/input/{inputViewName}/batch/incident-change/{incident} endpoint.
This call enables you to change the incident associated with one or more records in a bulk operation. Use this API call when board tables are incident-dependent and individual updates using an <incidentselector> tag are insufficient. The feature accounts for parent-child relationships, ensuring that if a parent record's incident changes, the associated child records' incidents are updated accordingly.
Description | Bulk assign to an incident by boardName, inputViewName, and incident in WebEOC Nexus |
---|---|
URL | /board/{boardName}/input/{inputViewName}/batch/incident-change/{incident} |
Method | POST |
Parameters |
|
Review the parameter definitions and examples of how to use the incident-change endpoint in JavaScript and C# calls.
Parameters
Variable Name | Type | Description | Required |
---|---|---|---|
boardName | String | Name of the board | True (URL) |
inputViewName | String | Name of the board’s input view | True (URL) |
incident | String | Name of the incident where records will be moved | True |
Examples
JavaScript Call
var boardName = 'Board Name';
var inputViewName = 'Input View Name';
var incident = 'Input Name';
var dataIds = {
"data": "[1,14]"
};
await fetch(`${baseUrl}/board/${boardName}/input/${inputViewName}/batch/incident-change/${incident}`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(dataIds)
})
C# Call
public async Task ReassignRecordsToIncident()
{
using (var httpClient = new HttpClient(httpClientHandler))
{
var boardName = "Board Name",
var inputViewName = "Input View Name",
var incident = "Incident Name",
var dataIds = new
{
data = "[1,14]"
};
var serializedInformation = JsonConvert.SerializeObject(dataIds);
await httpClient.PostAsync($"{baseUrl}/board/{boardName}/input/{inputViewName}/batch/incident-change/{incident}",
new StringContent(serializedInformation, Encoding.UTF8, "application/json"));
}
}