Delete workflows

Bulk delete workflows, along with their entries, assignments, logs and history. The query filters are the same as for searching workflows and select the candidate set; the body picks the workflows within it. Provide ids, or explicitly set include to false to delete every workflow matching the filters (and every workflow 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 permission. While multi-campus is on, a workflow 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 workflow 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. Ids the caller cannot see are dropped before counting and are neither deleted nor skipped.

Required permission: Full Write Workflows

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

Return workflows whose name contains the given text.

double

Return workflows with at least this many tasks.

double

Return workflows with at most this many tasks.

boolean

Whether to return only enabled (true) or only disabled (false) workflows. If omitted, both are returned.

string

Comma-delimited list of workflow category ids or codes. Values come from /api/property_values/workflow_categories/values. Use -1 to return workflows with no category.

string

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

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.

string

Return workflows whose name contains the given text.

Body Params

The ids of the workflows 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