ContactGroups
Remove members from a contact group
Removes one or more contacts from a contact group, returning the count of removed members. One request carries at most 1000 ids.
DELETE
Removes one or more contacts from a contact group, returning the count of removed members. One request carries at most 1000 ids.
apiKeyheader
x-api-key<token>id*stringMatch
^cgrp_[0-9a-hjkmnp-tv-z]{16,24}$application/json- body
contactIds*array<>Items
1 <= items <= 1000Success
application/json- response
removed*integerRange
0 <= value <= 9007199254740991import { createClient } from "samva";const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });const result = await samva.contactGroups.removeMembers({ "id": "example", "contactIds": [ "example" ]});Example Response
{ "removed": 0}Related documentation
Delete a contact group
Permanently deletes a contact group by its ID. Use this endpoint to delete a contact group through the Samva email API.
Update a contact group
Updates an existing contact group's fields and returns the updated group. Use this endpoint to update a contact group through the Samva email API.