Skip to main content
DELETE
/
:projectId
/
api
/
v7
/
connections
/
:connectionId
Remove Connection
curl --request DELETE \
  --url https://api.replyke.com/api/v6/:projectId/api/v7/connections/:connectionId
{
  "message": "<string>"
}
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).
Use Remove Connection (by user ID) if you only have the other user’s ID.

Path Parameters

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

Response

On success, returns HTTP 200:
message
string
Human-readable description: "Connection request withdrawn successfully." or "Connection removed successfully.".

Error Responses

{
  "error": "Connection not found or cannot be withdrawn.",
  "code": "connection/not-found"
}
{
  "error": "Only the requester can withdraw a pending connection request.",
  "code": "connection/unauthorized"
}

See Also