Remove members from a distribution list by body
/distribution-lists/{id}/membersRemoves every user in userIds from the list and returns 204; users who are not members are skipped. Deprecated: it will be withdrawn on 2027-06-30. Use DELETE /distribution-lists/{id}/members/{member_id} for one member, or PUT to replace the set. No dry run. Emits distribution_list.updated when it changed; no email. Adding the users again undoes it.
Path parameters
The distribution list's id. Distribution lists are keyed by integer ids, not UUIDs: a whole number from 1 to 2147483647.
Request body
application/json, required · MemberIds
{
"userIds": [
"1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d"
]
}Responses
The listed users are no longer members.
Authorization failed. error.code is one of org_disabled,
ip_blocked, missing_scope, scope_disabled, user_disabled.
Request validation failed (HTTP 422). The body is either the Laravel
validation envelope (message + field-keyed errors) or the API error
envelope for domain rejections (e.g. form_type_not_supported,
folder_locked, parent_not_found, folder_not_empty).
Examples
curl -X DELETE https://your-org-domain/kong/core/api/v2/distribution-lists/{id}/members\
-H "Authorization: Bearer $HELM_API_KEY"\
-H "Content-Type: application/json"\
-d '{
"userIds": [
"1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d"
]
}'