code: def stop(self, api=None):
          
          api = api or self._API
  
          return api.post(
              url=self._URL['actions'].format(
                  id=self.id, action=AutomationRunActions.STOP
              )
          ).content
docs: Stop automation run.
          :param api: sevenbridges Api instance.
          :return: AutomationRun object