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.

/board/{boardName}/input/{inputViewName}/batch/incident-change/{incident} endpoint description
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
  • boardName

  • inputViewName

  • incident

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

Parameters

/board/{boardName}/input/{inputViewName}/batch/incident-change/{incident} endpoint 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

Copy Code
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

Copy Code
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"));
    }
}