docs: def _create_activity1(self, process, name, activity_class="UserTask"):
          """Create a new activity.
  
          :param process: parent process id
          :type process: basestring
          :param name: new activity name
          :type name: basestring
          :param activity_class: type of activity: UserTask (default) or Subprocess
          :type activity_class: basestring
          :return: the created :class:`models.Activity`
          :raises IllegalArgumentError: When the provided arguments are incorrect
          :raises APIError: When the object could not be created
          """
          if self.match_app_version(label='wim', version='>=2.0.0', default=False):
              raise APIError('This method is only compatible with versions of KE-chain where the internal `wim` module '
                             'has a version <=2.0.0. Use the `Client.create_activity2()` method.')
  
          if activity_class and activity_class not in ActivityType.values():
              raise IllegalArgumentError(
                  "Please provide accepted activity_class (provided:{} accepted:{})".format(
                      activity_class, (ActivityType.USERTASK, ActivityType.SUBPROCESS, ActivityType.SERVICETASK)))
          data = {
              "name": name,
              "process": process,
              "activity_class": activity_class
          }
  
          response = self._request('POST', self._build_url('activities'), data=data)
  
          if response.status_code != requests.codes.created:  # pragma: no cover
              raise APIError("Could not create activity")
  
          data = response.json()
  
          return Activity(data['results'][0], client=self)