updateUserPermissionsWithHttpInfo method
Future<Response>
updateUserPermissionsWithHttpInfo(
- String type,
- String id,
- UpdateUserPermissionsRequest updateUserPermissionsRequest
Update user permissions
Updates user permissions Sends events: - call.permissions_updated Required permissions: - UpdateCallPermissions
Note: This method returns the HTTP Response
.
Parameters:
-
String type (required):
-
String id (required):
-
UpdateUserPermissionsRequest updateUserPermissionsRequest (required):
Implementation
Future<Response> updateUserPermissionsWithHttpInfo(
String type,
String id,
UpdateUserPermissionsRequest updateUserPermissionsRequest,
) async {
// ignore: prefer_const_declarations
final path = r'/video/call/{type}/{id}/user_permissions'
.replaceAll('{type}', type)
.replaceAll('{id}', id);
// ignore: prefer_final_locals
Object? postBody = updateUserPermissionsRequest;
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,
);
}