Delete plans in bulk

Delete several service plans. Provide ids, or explicitly set include to false to delete every plan matching the filters (and every plan outright when no filters are given); an empty body is rejected.

Required permission: Full Write Service Plans

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

Include plans which contain this text in the title.

string

Include plans which contain this text in the subtitle.

string

Comma-delimited list of service type ids or codes (e.g. plan_type_worship). Values come from /api/plans/servicetypes.

date-time

Include plans whose earliest date falls on or after this date and time.

date-time

Include plans whose earliest date falls on or before this date and time.

boolean

When true, include only plans with an upcoming time (or no times yet). When false, include only plans whose times have all passed.

boolean

Filter by whether the plan is shared publicly.

string

Comma-delimited list of location ids. Use -1 to include plans without a location.

Body Params

The plans 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.

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!