cURL
curl --request PATCH \ --url https://api.replyke.com/api/v6/:projectId/api/v7/connections/:connectionId/decline
{ "id": "<string>", "status": "<string>", "respondedAt": "<string>" }
Decline a pending connection request
"declined"
200
Not Found — 404
{ "error": "Pending connection request not found.", "code": "connection/not-found" }
Unauthorized — 403
{ "error": "Only the receiver can decline a connection request.", "code": "connection/unauthorized" }
useDeclineConnection