NodePing.ContactGroups.create-exclamation-mark
You're seeing just the function
create-exclamation-mark
, go back to NodePing.ContactGroups module for more information.
Create a contact group from your NodePing account or subaccount.
Parameters
token
- NodePing API token that is provided with accountopts
- OptionalMap
of parameters for new contact groupcustomerid
- optional ID to access a subaccount
Opts
name
- A label for the groupmembers
- A list of contact ids
Examples
iex> token = System.fetch_env!("TOKEN")
iex> members = ["9GJ7EHJX", "GFRWVKD9"]
iex> opts = %{:name => "contactgroup name", :members => members}
iex> result = NodePing.ContactGroups.create!(token, opts)