Delete report groups

Bulk delete report groups, along with their subgroups and every report submitted under them. Provide ids, or explicitly set include to false to delete every group matching the query filters (and every group outright when no filters are given); an empty body is rejected. The response reports how many were deleted and how many were skipped because they sit wholly outside the campuses where the caller holds the metrics settings permission. While multi-campus is on, a group that also belongs to campuses outside the caller's access needs the permission at every campus of its set (a subgroup follows its parent's set): explicit ids that include one answer 403 and nothing is deleted; with include false it is skipped and counted in skipped. A group available to every campus needs a caller with no campus limit and no restriction on that permission: explicit ids that include one answer 403 with every_campus_record_delete_desc (every_campus_organization_record_delete_desc while multi-org is on), and a select-all skips it. A select-all acts only on the top-level groups the listing shows.

Required permission: Metrics Settings

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

Filters to groups whose name contains the text.

string

Filters to groups whose abbreviation contains the text.

string

Filters to groups with a subgroup whose name contains each of the given words (space-separated).

boolean

Filters by whether the group is active.

string

Comma-delimited list of campus ids. Returns groups that belong to any of the campuses; -1 returns groups available to every campus. Ignored while multi-campus is off. The listing is also narrowed to the caller's campus lens, for pickers and the settings listing alike.

string

Organization ids, comma-separated; honoured only while multi-org is on. A record matches when it is scoped to one of them or has a campus in one of them.

double

Includes groups with at least this many submitted metric reports.

double

Includes groups with at most this many submitted metric reports.

date-time

Includes groups whose earliest metric report is on or after this date.

date-time

Includes groups whose earliest metric report is on or before this date.

date-time

Includes groups whose most recent metric report is on or after this date.

date-time

Includes groups whose most recent metric report is on or before this date.

Body Params

The ids to delete

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.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

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! Or choose an example:
text/plain
application/json
text/json