Class: Yext::Api::Agreements::AddRequestController

Inherits:
Yext::Api::ApplicationController show all
Extended by:
Memoist
Defined in:
app/controllers/yext/api/agreements/add_request_controller.rb

Overview

:webhooks:

:agreements:
  :add_request_update:
    :endpoint: https://[your_hostname]/[your_add_request_webhook_path]
    :default_version: 20161012
    :documentation: http://developer.yext.com/docs/webhooks/#operation/addRequestWebhook
    :sandbox_only: false

Instance Method Summary collapse

Instance Method Details

#createObject



24
25
26
27
28
29
30
31
32
33
34
# File 'app/controllers/yext/api/agreements/add_request_controller.rb', line 24

def create
  add_request = Yext::Api::AdministrativeApi::AddRequest.new(add_request_hash[:addRequest])

  ActiveSupport::Notifications.instrument "add_request.knowledge_manager.yext",
                                          meta:        add_request_hash[:meta],
                                          add_request: add_request do
    # do your custom stuff here
  end

  head :ok
end