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.

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.

date-time

Return connections dated on or after this date.

date-time

Return connections dated on or before this date.

date-time

Return connections due on or after this date.

date-time

Return connections due on or before this date.

date-time

Return connections completed on or after this date.

date-time

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.

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!