Module: BrazeAPI::Endpoints::Users::Alias
- Included in:
- Client
- Defined in:
- lib/braze_api/endpoints/users/alias.rb
Overview
Methods to call the users/alias/new endpoint from a client instance
Constant Summary collapse
- PATH =
'/users/alias/new'
Instance Method Summary collapse
-
#alias(alias_name:, alias_label:) ⇒ Object
The main method calling the endpoint.
Instance Method Details
#alias(alias_name:, alias_label:) ⇒ Object
The main method calling the endpoint. Called with an alias name and an alias label.
12 13 14 15 16 17 18 19 |
# File 'lib/braze_api/endpoints/users/alias.rb', line 12 def alias(alias_name:, alias_label:) post( PATH, params: { user_aliases: [{ alias_name: alias_name, alias_label: alias_label }] } ) end |