Class: Knockapi::Models::WorkflowTriggerParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/knockapi/models/workflow_trigger_params.rb

Overview

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(recipients:, actor: nil, cancellation_key: nil, data: nil, tenant: nil, request_options: {}) ⇒ Object

Some parameter documentations has been truncated, see Knockapi::Models::WorkflowTriggerParams for more details.

Parameters:



# File 'lib/knockapi/models/workflow_trigger_params.rb', line 50


Instance Attribute Details

#actorString, ...

Specifies a recipient in a request. This can either be a user identifier (string), an inline user request (object), or an inline object request, which is determined by the presence of a ‘collection` property.



23
# File 'lib/knockapi/models/workflow_trigger_params.rb', line 23

optional :actor, union: -> { Knockapi::RecipientRequest }, nil?: true

#cancellation_keyString?

An optional key that is used to reference a specific workflow trigger request when issuing a [workflow cancellation](/send-notifications/canceling-workflows) request. Must be provided while triggering a workflow in order to enable subsequent cancellation. Should be unique across trigger requests to avoid unintentional cancellations.

Returns:

  • (String, nil)


33
# File 'lib/knockapi/models/workflow_trigger_params.rb', line 33

optional :cancellation_key, String, nil?: true

#dataHash{Symbol=>Object}?

An optional map of data to pass into the workflow execution. There is a 10MB limit on the size of the full ‘data` payload. Any individual string value greater than 1024 bytes in length will be [truncated](/developer-tools/api-logs#log-truncation) in your logs.

Returns:



42
# File 'lib/knockapi/models/workflow_trigger_params.rb', line 42

optional :data, Knockapi::Internal::Type::HashOf[Knockapi::Internal::Type::Unknown], nil?: true

#recipientsArray<String, Knockapi::Models::InlineIdentifyUserRequest, Knockapi::Models::InlineObjectRequest>

The recipients to trigger the workflow for. Can inline identify users, objects, or use a list of user IDs. Limited to 1,000 recipients.



15
# File 'lib/knockapi/models/workflow_trigger_params.rb', line 15

required :recipients, -> { Knockapi::Internal::Type::ArrayOf[union: Knockapi::RecipientRequest] }

#tenantString, ...

An request to set a tenant inline.

Returns:



48
# File 'lib/knockapi/models/workflow_trigger_params.rb', line 48

optional :tenant, union: -> { Knockapi::InlineTenantRequest }, nil?: true