updateOAuthApplicationWithHttpInfo method
Future<Response>
updateOAuthApplicationWithHttpInfo(
- String oauthApplicationId,
- UpdateOAuthApplicationRequest updateOAuthApplicationRequest
Update an OAuth application
Updates an existing OAuth application
Note: This method returns the HTTP Response
.
Parameters:
-
String oauthApplicationId (required): The ID of the OAuth application to update
-
UpdateOAuthApplicationRequest updateOAuthApplicationRequest (required):
Implementation
Future<http.Response> updateOAuthApplicationWithHttpInfo(
String oauthApplicationId,
UpdateOAuthApplicationRequest updateOAuthApplicationRequest,
) async {
// ignore: prefer_const_declarations
final path = r'/oauth_applications/{oauth_application_id}'
.replaceAll('{oauth_application_id}', oauthApplicationId);
// ignore: prefer_final_locals
Object? postBody = updateOAuthApplicationRequest;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'PATCH',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}