Delete designations

Bulk delete designations. Designations that have received gifts cannot be deleted; deactivate them instead. The query filters are the same as for searching designations and select the candidate set; the body picks the designations within it. Provide ids, or explicitly set include to false to delete every designation matching the filters (and every designation outright when no filters are given); an empty body is rejected. While multi-campus is on, explicit ids that include a designation outside the campuses where you hold Contributions Settings, or one that also belongs to campuses outside your access (deleting needs Contributions Settings at every campus of its set), answer 403 and nothing is deleted; with include false those designations are skipped. A designation available to every campus, which includes one with no campus while multi-org is off, 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. The response reports how many were deleted and how many a select-all skipped.

Required permission: Contributions Settings

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

Include designations which contain this text in the name.

string

Include designations which contain this text in the abbreviation.

string

Include designations which contain this text in the description.

string

Comma-delimited list of category ids. Use -1 to include designations without a category. Values come from /api/property_values/fund_category/values.

string

Comma-delimited list of campus (location) ids. Use -1 to include designations with no campus. Values come from /api/locations. Ignored while multi-campus is off.

string

Organization ids, comma-separated; honoured while money splits by organization (multi-org is on, or an archived organization still owns money). A record matches when it is scoped to one of them or has a campus in one of them. An archived organization's id is dropped.

string

Comma-delimited list of designation ids to restrict the results to.

string

Comma-delimited list of giving portal ids. Use -1 to include designations not available on any giving portal.

boolean

Whether contributions to the designation are tax deductible or not.

boolean

Whether the designation is active or not. When filtering for inactive designations, also set all to true.

boolean

Only include designations with text-giving keywords. Giving statistics reflect text giving only.

double

Only include designations whose total giving is at least this amount.

double

Only include designations whose total giving is at most this amount.

double

Only include designations with at least this many transactions.

double

Only include designations with at most this many transactions.

double

Only include designations with at least this many recurring giving schedules.

double

Only include designations with at most this many recurring giving schedules.

date-time

Only include designations that last received a gift on or after this date.

date-time

Only include designations that last received a gift on or before this date.

boolean

Send true when listing the designations a gift can be given to: keeps the designations a gift saved by the caller may name, those with no campus or at a campus where the caller holds Financial Write. Changes nothing for a caller with no campus or organization limit.

string

Free text search across the designation's name, abbreviation, category, and description.

Body Params

The designations 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