Skip to main content
PATCH
/
:projectId
/
api
/
v7
/
connections
/
:connectionId
/
decline
Decline Connection
curl --request PATCH \
  --url https://api.replyke.com/api/v6/:projectId/api/v7/connections/:connectionId/decline
{
  "id": "<string>",
  "status": "<string>",
  "respondedAt": "<string>"
}
Declines a pending connection request. Only the receiver of the original request can decline it. The connection record status is updated to "declined" rather than being deleted.

Path Parameters

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

Response

On success, returns HTTP 200:
id
string
Connection record ID.
status
string
"declined".
respondedAt
string
ISO timestamp of when the request was declined.

Error Responses

{
  "error": "Pending connection request not found.",
  "code": "connection/not-found"
}
{
  "error": "Only the receiver can decline a connection request.",
  "code": "connection/unauthorized"
}

See Also