disableUserAccessTokenWithHttpInfo method

Future<Response> disableUserAccessTokenWithHttpInfo(
  1. MmDisableUserAccessTokenRequest mmDisableUserAccessTokenRequest
)

Disable personal access token

Disable a personal access token and delete any sessions using the token. The token can be re-enabled using /users/tokens/enable. Minimum server version: 4.4 ##### Permissions Must have revoke_user_access_token permission. For non-self requests, must also have the edit_other_users permission.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> disableUserAccessTokenWithHttpInfo(
  MmDisableUserAccessTokenRequest mmDisableUserAccessTokenRequest,
) async {
  // ignore: prefer_const_declarations
  final path = r'/users/tokens/disable';

  // ignore: prefer_final_locals
  Object? postBody = mmDisableUserAccessTokenRequest;

  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,
  );
}