Method: MxPlatformRuby::MxPlatformApi#create_transaction_rule

Defined in:
lib/mx-platform-ruby/api/mx_platform_api.rb

#create_transaction_rule(user_guid, transaction_rule_create_request_body, opts = {}) ⇒ TransactionRuleResponseBody

Create transaction rule Use this endpoint to create a new transaction rule. The newly-created transaction_rule object will be returned if successful.

Parameters:

  • user_guid (String)

    The unique id for a `user`.

  • transaction_rule_create_request_body (TransactionRuleCreateRequestBody)

    TransactionRule object to be created with optional parameters (description) and required parameters (category_guid and match_description)

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

    the optional parameters

Returns:



776
777
778
779
# File 'lib/mx-platform-ruby/api/mx_platform_api.rb', line 776

def create_transaction_rule(user_guid, transaction_rule_create_request_body, opts = {})
  data, _status_code, _headers = create_transaction_rule_with_http_info(user_guid, transaction_rule_create_request_body, opts)
  data
end