module BrazeAPI::Endpoints::Users::Alias

Methods to call the users/alias/new endpoint from a client instance

Constants

PATH

Public Instance Methods

alias(alias_name:, alias_label:) click to toggle source

The main method calling the endpoint. Called with an alias name and an alias label.

# 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