Method: KlaviyoAPI::FlowsApi#create_flow

Defined in:
lib/klaviyo-api-sdk/api/flows_api.rb

#create_flow(flow_create_query, opts = {}) ⇒ Hash<String, Object>

Create Flow Create a new flow using an encoded flow definition. New objects within the flow definition, such as actions, will need to use a ‘temporary_id` field for identification. These will be replaced with traditional `id` fields after successful creation. A successful request will return the new definition to you.
*Rate limits*:
Burst: `1/s`
Steady: `15/m`
Daily: `100/d` Scopes: `flows:write`

Parameters:

  • flow_create_query (FlowCreateQuery)

    Creates a Flow from parameters

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :additional_fields_flow (Array<String>)

    Request additional fields not included by default in the response. Supported values: &#39;definition&#39;

Returns:

  • (Hash<String, Object>)

28
29
30
31
# File 'lib/klaviyo-api-sdk/api/flows_api.rb', line 28

def create_flow(flow_create_query, opts = {})
  data, _status_code, _headers = create_flow_with_http_info(flow_create_query, opts)
  data
end