Assign Process Permissions to a Group
You can assign process permissions by group using the /groups/{groupName}/processpermission/{processPermissionName} endpoint.
Description | Assign a process permission to an existing group in WebEOC Nexus |
---|---|
URL | groups/{groupName}/processpermission/{processPermissionName} |
Method | POST |
Parameters |
|
Review the parameter definitions and examples of how to use the processpermission endpoint in JavaScript and C# calls.
Parameters
Variable Name | Type | Description | Required |
---|---|---|---|
groupName | String | Name of the WebEOC Nexus group where process permission will be added | True (URL) |
processPermissionName | String | Name of the process permission to be added to the group | True |
Examples
JavaScript Call
Copy Code
var groupName = 'Group Name';
var permission = {
"groups": ["County - Cameron County", "Group 2"]
};
await fetch(`${baseUrl}/groups/${groupName}/processpermission/AssignedToGroup`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(permission)
})
C# Call
Copy Code
public async Task ProcessPermissions()
{
using (var httpClient = new HttpClient(httpClientHandler))
{
var groupName = "Group Name",
var permission = new
{
groups = ["County - Cameron County", "Group 2"]
};
var serializedInformation = JsonConvert.SerializeObject(permission);
await httpClient.PostAsync($"{baseUrl}/groups/{groupName}/processpermission/AssignedToGroup",
new StringContent(serializedInformation, Encoding.UTF8, "application/json"));
}
}