regenerateOAuthAppSecretWithHttpInfo method
Regenerate OAuth app secret
Regenerate the client secret for an OAuth 2.0 client application registered with Mattermost. ##### 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
Implementation
Future<Response> regenerateOAuthAppSecretWithHttpInfo(
String appId,
) async {
// ignore: prefer_const_declarations
final path = r'/oauth/apps/{app_id}/regen_secret'.replaceAll('{app_id}', appId);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <MmQueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}