Edit a Group

Edit values for a particular group in Unified Command Platform using the EditGroup endpoint.

EditGroup endpoint description
Description Edit information for an existing group in Unified Command Platform
URL /groups/{groupname}
Method POST
Parameters
  • groupname

  • name

  • comment

  • organizational

  • assignedPositions

  • assignedIncidents

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

Parameters

EditGroup endpoint parameters
Variable Name Type Description Required
groupname String Name of the Unified Command Platform group to be edited True (URL)
name String New, edited name of the Unified Command Platform group False
comment String Description of the group False
organizational String
  • True if the group may have process permissions

  • False if the group will not have process permissions

False
assignedPositions String array Unified Command Platform positions associated with the group False
assignedIncidents String array Unified Command Platform incidents associated with the group False

Unassigned parameters will not be edited or changed.

Examples

JavaScript Call

Copy Code
var newGroup = {
groupName: 'Old Group Name'
name: 'New Group Name'
comments: 'Different comments.'
organizational: false,
assignedPositions: ['CMD EOC Director', 'CMD Incident Commander'], 
assignedIncidents: ['Incident A', 'Incident B']
};
await fetch(`${baseUrl}/groups/Group B`, { 
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(data)
})

C# Call

Copy Code
public async Task EditGroup()
{
using (var httpClient = new HttpClient(httpClientHandler))
{
var newGroup = new
{
groupName = "Old Group Name"
name = "New Group Name",
comments = "Different comments."
organizational = false
assignedPositions = new String[] {"CMD EOC Director", "CMD Incident Commander"},
assignedIncidents = new String[] { "Incident A", "Incident B"
}
};
var serializedInformation = JsonConvert.SerializeObject(newGroup); 
await httpClient.PostAsync($"{baseUrl}/groups/Group A",
new StringContent(serializedInformation, Encoding.UTF8, "application/json"));
}
}