Delete connections

Bulk delete connections and their comments. The query filters are the same as for searching connections and select the candidate set; the body picks the connections within it. Provide ids, or explicitly set include to false to delete every connection matching the filters (and every connection outright when no filters are given); an empty body is rejected. While multi-campus is on, connections outside the campuses where the caller holds the permission are left in place; explicit ids that include a connection that also belongs to campuses outside the caller's access answer 403 and nothing is deleted (deleting needs the permission at every campus of its set), and include false leaves such connections in place. A connection 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. Deleting also needs the connection's type admitted by the caller's connection type limit at every campus of its set: explicit ids that include one answer 403 (with shared_record_delete_desc when the type is admitted at only some of those campuses), and include false skips it. The response reports how many were deleted and how many of the connections the caller can see were left in place.

Required permission: Full Write Connections

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

Comma-delimited list of connection status ids. Values come from /api/property_values/connection_statuses/values.

string

Comma-delimited list of connection type ids. Values come from /api/property_values/connection_types/values.

int32
≥ 1

The id of the person the connection is about.

string

Text matched against the person's name and aliases. When multiple words are given, every word must match.

string

Return connections whose person's email address contains the given text.

string

Return connections whose person's phone number contains the given digits.

int32
≥ 1

The id of the person the connection is assigned to.

string

Text matched against the assignee's name and aliases. When multiple words are given, every word must match.

double

Return connections for people at least this old.

double

Return connections for people at most this old.

string

Comma-delimited list of gender ids matched against the person. Use -1 to include people with no gender.

string

Comma-delimited list of marital status ids matched against the person. Use -1 to include people with no marital status.

int32

Match dates falling in this month (1-12).

int32

Match dates falling on this day of the month (1-31).

int32

Match dates falling in this year.

date-time

Match dates falling within a window starting at this date.

date-time

Match dates falling within a window ending at this date.

double

Return connections whose person's family id is at least this value.

double

Return connections whose person's family id is at most this value.

string

Comma-delimited list of campus (location) ids. Use -1 to include connections with no campus. Ignored while multi-campus is off.

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.

date

Return connections dated on or after this date.

date

Return connections dated on or before this date.

date

Return connections due on or after this date.

date

Return connections due on or before this date.

date

Return connections completed on or after this date.

date

Return connections completed on or before this date.

string

Return connections whose initial notes contain the given text.

string

Return connections whose outcome notes contain the given text.

string

Return connections created by the given user name.

string

Return the connection with the given code (exact match).

Body Params

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