Groups
Create & Update Groups
Create Group(s)
This API will allow you to create a single group using a traditional REST approach.
Create Single Group
The only required property for a group is the name and resource type (location
or contact
)
Create a Group on a location and add multiple contacts
Update Group
To update a group, you'll need to pass the group's ID along with any properties that you want to manage.
Update a Group name and add and remove contacts
Override group contacts
Request Body
name string
(required)
resource contact|location
(required)
location_id location_id
add Array<contact_id|location_id> <br> **remove**
Array<contact_id|location_id>
set `Array<contact_id|location_id>
Overrides the children with provided array
Validations
set
can not be used with add
or remove
.
Group resource
can not be updated.
location_id
can not be set with resource location
.
The combination of name
and resource
must be unique.
If a location_id
is provided to a group, only contacts that are associated to that location can be added to the group.
Only contact or locations that are in the group can be removed.