Add a Group

Add a new group in WebEOC Nexus using the AddGroup endpoint.

AddGroup endpoint description
Description Add a new group in WebEOC Nexus
URL /groups
Method POST
Parameters
  • name

  • comment

  • organizational

  • assignedPositions

  • assignedIncidents

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

Parameters

AddGroup endpoint parameters
Variable Name Type Description Required
name String Name of the WebEOC Nexus group to be added False
comments String Description of the group False
organizational Boolean
  • True if the group may have process permissions

  • False if the group will not have process permissions

False
assignedPositions String array WebEOC Nexus positions assigned to the group False
assignedIncidents String array WebEOC Nexus incidents assigned to the group False

Any unassigned parameters receive default values.

Examples

JavaScript Call

Copy Code
var newGroup = { name: 'Group A',
comments: 'The quick brown fox jumps over the lazy dog.'
organizational: false,
assignedPositions: ['CMD EOC Director', 'CMD Incident Commander'],
assignedIncidents: ['Dorf Goes Fishing']
};
await fetch(`${baseUrl}/groups`, { 
method: 'POST',
headers: { 'Content-Type': 'application/json' }, 
body: JSON.stringify(data)
})

C# Call

Copy Code
public async Task AddGroup()
{
using (var httpClient = new HttpClient(httpClientHandler))
{
var newGroup = new
{
name = "Group A"
comments =
"The quick brown fox jumps over the lazy dog."
organizational = false,
assignedPositions = new String[] { 
"CMD EOC Director",
"CMD Incident Commander"
},
assignedIncidents = new String[] { 
"Dorf Goes Fishing"
}
};
var serializedInformation = JsonConvert.SerializeObject(newGroup); 
await httpClient.PostAsync($"{baseUrl}/groups",
new StringContent(serializedInformation, Encoding.UTF8, "application/json"));
}
}