Write Operations
These endpoints create groups, and add or remove profiles as members.
Endpoints
POST api/groups/bulk-create/
POST api/groups/assign/
POST api/groups/unassign/Create groups
Accepts a single object or a list of objects. A name that already exists in your organization is skipped and reported back, so re-running the same import cannot grow a second group with the same name that nobody can tell apart afterwards.
POST api/groups/bulk-create/name (
string, required): The name of the group.description (
string): An optional description.
Example Request Payload
[
{
"name": "Acme Corp Volunteer Team",
"description": "Employees volunteering through our corporate partnership"
}
]Example Response
Add profiles to groups
Adds every listed profile to every listed group as an active member.
user_ids (
array, required): The profiles to add, by Vome ID. A single user_id is also accepted.group_ids (
array, required): The groups to add them to, by ID. A single group_id is also accepted.role (
integer):0for Member,1for Leader.
Example Request Payload
Someone who was previously removed from a group is reactivated rather than added twice.
Example Response
Remove profiles from groups
Removes every listed profile from every listed group. The body is the same shape as the add endpoint, and role is ignored.
The membership is marked as removed rather than deleted, which is what happens when an admin removes someone in the app, so the record of when they joined survives.