regenerateTokenWithHttpInfo method
Regenerate a token
Regenerate an existing token resource. This will replace the token attribute with a new secure token, and extend the token's expiry by 2 weeks from the current time.
Note: This method returns the HTTP Response
.
Parameters:
Implementation
Future<Response> regenerateTokenWithHttpInfo(String account, String token,) async {
// ignore: prefer_const_declarations
final path = r'/accounts/{account}/tokens/{token}'
.replaceAll('{account}', account)
.replaceAll('{token}', token);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'PUT',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}