addRolesToRoleSetWithHttpInfo method
Future<Response>
addRolesToRoleSetWithHttpInfo(
- String roleSetKeyOrId,
- AddRolesToRoleSetRequest addRolesToRoleSetRequest
Add roles to a role set
Adds one or more roles to an existing role set. You can optionally update the default role or creator role when adding new roles.
Note: This method returns the HTTP Response.
Parameters:
-
String roleSetKeyOrId (required): The key or ID of the role set
-
AddRolesToRoleSetRequest addRolesToRoleSetRequest (required):
Implementation
Future<http.Response> addRolesToRoleSetWithHttpInfo(
String roleSetKeyOrId,
AddRolesToRoleSetRequest addRolesToRoleSetRequest,
) async {
// ignore: prefer_const_declarations
final path = r'/role_sets/{role_set_key_or_id}/roles'
.replaceAll('{role_set_key_or_id}', roleSetKeyOrId);
// ignore: prefer_final_locals
Object? postBody = addRolesToRoleSetRequest;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}