NodePing.ContactGroups.create-exclamation-mark

You're seeing just the function create-exclamation-mark, go back to NodePing.ContactGroups module for more information.
Link to this function

create!(token, opts, customerid \\ nil)

View Source

Create a contact group from your NodePing account or subaccount.

Parameters

  • token - NodePing API token that is provided with account
  • opts - Optional Map of parameters for new contact group
  • customerid - optional ID to access a subaccount

Opts

  • name - A label for the group
  • members - 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)