NodePing.ContactGroups.update-exclamation-mark

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

update!(token, id, opts, customerid \\ nil)

View Source

Update an existing contact group on your NodePing account or subaccount.

Parameters

  • token - NodePing API token that is provided with account
  • id - the ID for your contact group
  • 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> id = "201205050153W2Q4C-G-3QJWG"
iex> members = ["9GJ7EHJX", "GFRWVKD9"]
iex> opts = %{:name => "contactgroup name", :members => members}
iex> result = NodePing.ContactGroups.update!(token, id, opts)