enableUserAccessTokenWithHttpInfo method
Future<Response>
enableUserAccessTokenWithHttpInfo(
- MmEnableUserAccessTokenRequest mmEnableUserAccessTokenRequest
Enable personal access token
Re-enable a personal access token that has been disabled. Minimum server version: 4.4 ##### Permissions Must have create_user_access_token
permission. For non-self requests, must also have the edit_other_users
permission.
Note: This method returns the HTTP Response
.
Parameters:
- MmEnableUserAccessTokenRequest mmEnableUserAccessTokenRequest (required):
Implementation
Future<Response> enableUserAccessTokenWithHttpInfo(
MmEnableUserAccessTokenRequest mmEnableUserAccessTokenRequest,
) async {
// ignore: prefer_const_declarations
final path = r'/users/tokens/enable';
// ignore: prefer_final_locals
Object? postBody = mmEnableUserAccessTokenRequest;
final queryParams = <MmQueryParam>[];
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,
);
}