Method: Unit::Resource::WebhookResource.enable_webhook

Defined in:
lib/unit/api_resources/webhook_resource.rb

.enable_webhook(webhook_id) ⇒ UnitResponse, UnitError

Enable a webhook by calling Unit’s API



50
51
52
53
# File 'lib/unit/api_resources/webhook_resource.rb', line 50

def enable_webhook(webhook_id)
  response = HttpHelper.post("#{api_url}/webhooks/#{webhook_id}/enable", headers: headers)
  response_handler(response)
end