NodePing.ContactGroups.update
You're seeing just the function
update
, go back to NodePing.ContactGroups module for more information.
Update an existing contact group on your NodePing account or subaccount.
Parameters
token
- NodePing API token that is provided with accountid
- the ID for your contact groupopts
- 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> id = "201205050153W2Q4C-G-3QJWG"
iex> members = ["9GJ7EHJX", "GFRWVKD9"]
iex> opts = %{:name => "contactgroup name", :members => members}
iex> {:ok, result} = NodePing.ContactGroups.update(token, id, opts)