groups:write| Parameter | Type | Description |
|---|---|---|
id | integer | Required. The group ID to remove contacts from |
| Field | Type | Required | Validation | Description |
|---|---|---|---|---|
contact_ids | array | Yes | min:1, each must be integer | Array of contact IDs to remove |
group_id JSON array is updated to remove this group IDcontacts_removed)| Field | Type | Description |
|---|---|---|
group_id | integer | The group ID |
contacts_removed | integer | Number of contacts actually removed (excludes not-in-group) |
| Status | Code | Description |
|---|---|---|
| 404 | NOT_FOUND | Group not found |
| 422 | VALIDATION_ERROR | Validation failed (missing contact_ids) |
| 500 | INTERNAL_ERROR | Failed to remove contacts from group |
| Field | Message |
|---|---|
contact_ids | Contact IDs are required / Contact IDs must be an array |
curl --location --request DELETE '/groups/1/contacts' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json'{}