updateKeyBindingWithHttpInfo method
Future<Response>
updateKeyBindingWithHttpInfo(
- String id,
- UpdateKeyBindingRequest updateKeyBindingRequest
Create or update a user key-binding customization.
Note: This method returns the HTTP Response.
Parameters:
-
String id (required):
-
UpdateKeyBindingRequest updateKeyBindingRequest (required):
Implementation
Future<Response> updateKeyBindingWithHttpInfo(String id, UpdateKeyBindingRequest updateKeyBindingRequest,) async {
// ignore: prefer_const_declarations
final path = r'/v1/keybindings/{id}'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
Object? postBody = updateKeyBindingRequest;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'PUT',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}