postFrameworkRolesWithHttpInfo method
Grants one user one role in the caller's org — how a member gains rights on a DocType, since permissions name roles and never users.
Grants one user one role in the caller's org — how a member gains rights on a DocType, since permissions name roles and never users. Manager-only. Answers 201.
Note: This method returns the HTTP Response.
Parameters:
- RoleAssignment roleAssignment (required):
Implementation
Future<Response> postFrameworkRolesWithHttpInfo(RoleAssignment roleAssignment,) async {
// ignore: prefer_const_declarations
final path = r'/v1/framework/roles';
// ignore: prefer_final_locals
Object? postBody = roleAssignment;
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,
);
}