Skip to main content
Remove Connection
Removes a connection record by its ID. The behavior depends on the connection’s current status:
  • Pending — only the requester can withdraw the request (record is deleted).
  • Accepted — either connected user can disconnect (record is deleted).
  • Declined — neither user can remove it: 409 connection/not-pending.
A connection the acting user isn’t part of answers exactly like one that doesn’t exist (404 connection/not-found), whatever its status. Use Remove Connection (by user ID) if you only have the other user’s ID.

Path Parameters

string
required
The ID (UUID) of the connection record to remove.

Query Parameters

string
Service key only, and required with one: the user this request acts as. Must be the requester of a pending request, or either user of an accepted connection. A user token always acts as its own user and must not send it (400 connection/acting-user-not-allowed).

Response

On success, returns HTTP 204 No Content with no body.

Error Responses

No connection has this ID, or the acting user is neither its requester nor its receiver (the two answer alike). Also returned when the connection is removed while this request is in flight.
The request was declined, so there’s nothing to withdraw or disconnect. Also returned when a pending request is accepted or declined while this request is in flight.
The request is pending and the acting user is its receiver: only the requester can withdraw it (the receiver declines it with Decline Connection).
A service key sent no actingUserId.
A user token sent actingUserId, even naming its own user. Only a service key names the user it acts as; a user token always acts as its own user.
Returned when a service key names an actingUserId that isn’t a user in this project.
The request sent userId. On this route the user a service key acts as is actingUserId.With a service key:
With a user token, or with no credentials:

See Also