code: def abort(self):
      
      if self.id == ApiCommand.SYNCHRONOUS_COMMAND_ID:
        return self
  
      path = self._path() + '/abort'
      resp = self._get_resource_root().post(path)
      return ApiCommand.from_json_dict(resp, self._get_resource_root())
docs: Abort a running command.
  
      @return: A new ApiCommand object with the updated information.