Remove group members

Remove group members across all groups, along with their custom field responses. Provide ids, or explicitly set include to false to remove every member matching the filters; an empty body is rejected. Custom fields can also be used as filters; see filtering by custom fields.

Required permission: Limited Write Groups

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
int32
≥ 1

The id of a member role to filter by. Values come from /api/property_values/small_group_member_roles/values.

string

Comma-delimited list of serving position ids. Use -1 to include members with no position.

string

Comma-delimited list of member type ids (or type names). Values come from the group type's member types list: append _member_types to the group type code (e.g. /api/property_values/group_type_class_member_types/values).

string

Comma-delimited list of record type ids. Matches the member's person record type.

string

Comma-delimited list of campus ids. Use -1 to include members without a campus. Values come from /api/locations.

string

Comma-delimited list of group type ids. Returns memberships in groups of those types.

string

Return memberships whose group's category name contains the given text.

int32

The id of the person whose memberships to return.

int32
≥ 1

The id of a group. Returns only memberships in that group.

string

Return memberships whose group's name contains the given text.

string

Return members whose first name contains the given text.

string

Return members whose last name contains the given text.

string

Text matched against the member's names and aliases. When multiple words are given, every word must match.

string

Return members whose email address contains the given text.

string

Return members whose phone number contains the given digits.

string

Comma-delimited list of gender ids. Use -1 to include members with no gender. Values come from /api/property_values/gender/values.

double

Return members at least this old.

double

Return members at most this old.

date-time

Return only memberships in effect on this date.

date-time

Return members who last attended on or after this date.

date-time

Return members who last attended on or before this date.

date-time

Return members added on or after this date.

date-time

Return members added on or before this date.

date-time

Return members dropped on or after this date.

date-time

Return members dropped on or before this date.

boolean

Whether the member is a group administrator.

boolean

Whether the member has special group permissions or is an administrator.

string

Return memberships whose notes contain the given text.

boolean

Whether the membership is current, i.e. started and not yet ended.

string
Body Params

Which members to remove

ids
array of doubles | null

The ids the operation applies to: an include list by default, or an exclude list when include is false. For deletes, required unless include is false.

ids
boolean | null

Whether ids is an include list (true, default) or an exclude list (false). Setting include to false with no ids applies the operation to every record matching the query filters.

Responses
200

OK

401

Authentication is required, or the Ocs-Api-Key header is missing or invalid.

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here!