updateOAuthAppWithHttpInfo method
Future<Response>
updateOAuthAppWithHttpInfo(
- String appId,
- MmUpdateOAuthAppRequest mmUpdateOAuthAppRequest
Update an OAuth app
Update an OAuth 2.0 client application based on OAuth struct. ##### Permissions If app creator, must have mange_oauth
permission otherwise manage_system_wide_oauth
permission is required.
Note: This method returns the HTTP Response
.
Parameters:
-
String appId (required): Application client id
-
MmUpdateOAuthAppRequest mmUpdateOAuthAppRequest (required): OAuth application to update
Implementation
Future<Response> updateOAuthAppWithHttpInfo(
String appId,
MmUpdateOAuthAppRequest mmUpdateOAuthAppRequest,
) async {
// ignore: prefer_const_declarations
final path = r'/oauth/apps/{app_id}'.replaceAll('{app_id}', appId);
// ignore: prefer_final_locals
Object? postBody = mmUpdateOAuthAppRequest;
final queryParams = <MmQueryParam>[];
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,
);
}