Skip to content

Latest commit

 

History

History
47 lines (40 loc) · 2.63 KB

WebhookWithOutgoingIntegrationDetails.md

File metadata and controls

47 lines (40 loc) · 2.63 KB

TalonOne::WebhookWithOutgoingIntegrationDetails

Properties

Name Type Description Notes
id Integer Internal ID of this entity.
created DateTime The time this entity was created.
modified DateTime The time this entity was last modified.
application_ids Array<Integer> The IDs of the Applications in which this webhook is available. An empty array means the webhook is available in `All Applications`.
title String Name or title for this webhook.
description String A description of the webhook. [optional]
verb String API method for this webhook.
url String API URL (supports templating using parameters) for this webhook.
headers Array<String> List of API HTTP headers for this webhook.
payload String API payload (supports templating using parameters) for this webhook. [optional]
params Array<TemplateArgDef> Array of template argument definitions.
enabled Boolean Enables or disables webhook from showing in the Rule Builder.
outgoing_integration_template_id Integer Identifier of the outgoing integration template. [optional]
outgoing_integration_type_id Integer Identifier of the outgoing integration type. [optional]
outgoing_integration_type_name String Name of the outgoing integration. [optional]

Code Sample

require 'TalonOne'

instance = TalonOne::WebhookWithOutgoingIntegrationDetails.new(id: 6,
                                 created: 2020-06-10T09:05:27.993483Z,
                                 modified: 2021-09-12T10:12:42Z,
                                 application_ids: null,
                                 title: Send message,
                                 description: A webhook to send a coupon to the user.,
                                 verb: POST,
                                 url: www.my-company.com/my-endpoint-name,
                                 headers: [{&quot;Authorization&quot;: &quot;Basic bmF2ZWVua3VtYXIU&#x3D;&quot;}, {&quot;Content-Type&quot;: &quot;application/json&quot;}],
                                 payload: {
	&quot;message&quot;: &quot;${message}&quot;
},
                                 params: [],
                                 enabled: true,
                                 outgoing_integration_template_id: 1,
                                 outgoing_integration_type_id: 1,
                                 outgoing_integration_type_name: Braze)