code: public ApiSuccessResponse cancelEmail(String id, CancelData cancelData) throws ApiException {
          ApiResponse<ApiSuccessResponse> resp = cancelEmailWithHttpInfo(id, cancelData);
          return resp.getData();
      }
docs: cancel the outbound email interaction
  Cancel the interaction specified in the id path parameter
  @param id id of interaction to cancel (required)
  @param cancelData Request parameters. (optional)
  @return ApiSuccessResponse
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body