createRoleSetWithHttpInfo method
Create a role set
Creates a new role set with the given name and roles. The key must be unique for the instance and start with the 'role_set:' prefix, followed by lowercase alphanumeric characters and underscores only. You must provide at least one role and specify a default role key and creator role key.
Note: This method returns the HTTP Response.
Parameters:
- CreateRoleSetRequest createRoleSetRequest (required):
Implementation
Future<http.Response> createRoleSetWithHttpInfo(
CreateRoleSetRequest createRoleSetRequest,
) async {
// ignore: prefer_const_declarations
final path = r'/role_sets';
// ignore: prefer_final_locals
Object? postBody = createRoleSetRequest;
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,
);
}