code: def push_intent(self, intent):
          
          if intent.id:
              print('Updating {} intent'.format(intent.name))
              self.update(intent)
          else:
              print('Registering {} intent'.format(intent.name))
              intent = self.register(intent)
          return intent
docs: Registers or updates an intent and returns the intent_json with an ID