code: def addFeature(self, features,
                     gdbVersion=None,
                     rollbackOnFailure=True):
          
          url = self._url + "/addFeatures"
          params = {
              "f" : "json"
          }
          if gdbVersion is not None:
              params['gdbVersion'] = gdbVersion
          if isinstance(rollbackOnFailure, bool):
              params['rollbackOnFailure'] = rollbackOnFailure
          if isinstance(features, list) and \
             len(features) > 0:
              if isinstance(features[0], Feature):
                  params['features'] = json.dumps([feature.asDictionary for feature in features],
                                                  default=_date_handler)
              elif isinstance(features[0], dict):
                  params['features'] = json.dumps(features,
                                                  default=_date_handler)
          elif isinstance(features, Feature):
              params['features'] = json.dumps([features.asDictionary],
                                              default=_date_handler)
          elif isinstance(features, FeatureSet):
              params['features'] = json.dumps([feature.asDictionary for feature in features.features],
                                              default=_date_handler)
          else:
              return None
          return self._post(url=url,
                               param_dict=params,
                               securityHandler=self._securityHandler,
                               proxy_port=self._proxy_port,
                               proxy_url=self._proxy_url)
docs: Adds a single feature to the service
             Inputs:
                feature - list of common.Feature object or a single
                          common.Feature Object, a FeatureSet object, or a
                          list of dictionary objects
                gdbVersion - Geodatabase version to apply the edits
                rollbackOnFailure - Optional parameter to specify if the
                                    edits should be applied only if all
                                    submitted edits succeed. If false, the
                                    server will apply the edits that succeed
                                    even if some of the submitted edits fail.
                                    If true, the server will apply the edits
                                    only if all edits succeed. The default
                                    value is true.
             Output:
                JSON message as dictionary