Delete giving campaigns

Delete many giving campaigns. Provide ids, or explicitly set include to false to delete every campaign matching the filters (and every campaign outright when no filters are given); an empty body is rejected. The response reports how many were deleted and how many were skipped because the caller may see them but they sit wholly outside the campuses where the caller holds the permission. While multi-campus is on, a campaign that also belongs to campuses outside the caller's access needs the permission at every campus of its set: explicit ids that include one answer 403 and nothing is deleted; with include false it is skipped and counted in skipped. A campaign 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. Records the caller cannot see are neither deleted nor counted.

Required permission: Full Write Pledges

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

Text matched against the campaign's name.

string

Text matched against the campaign's description.

string

Comma-delimited list of designation ids; returns campaigns that apply giving to any of them.

string

Comma-delimited list of campus (location) ids; matches campaigns whose campuses include any of them. Use -1 to include campaigns available to every campus. 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.

date

Return campaigns starting on or after this date.

date

Return campaigns starting on or before this date.

date

Return campaigns ending on or after this date.

date

Return campaigns ending on or before this date.

boolean

Whether only giving toward pledges counts for the campaign.

boolean

Whether the campaign allows giving before its start date.

boolean

Whether the campaign is currently active, i.e. its end day is today or later in the church's time zone.

string

Return campaigns created by the given user name (exact match).

double

Return campaigns with at least this many pledges.

double

Return campaigns with at most this many pledges.

double

Return campaigns with a goal of at least this amount.

double

Return campaigns with a goal of at most this amount.

double

Return campaigns with at least this amount pledged.

double

Return campaigns with at most this amount pledged.

double

Return campaigns that raised at least this amount.

double

Return campaigns that raised at most this amount.

double

Return campaigns with at least this amount remaining.

double

Return campaigns with at most this amount remaining.

double

Return campaigns at least this percent of the way to their goal (0-100).

double

Return campaigns at most this percent of the way to their goal (0-100).

Body Params

The selection criteria

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