API referenceDirect actions
DELETE
/accounts/{id}/connections/{identifier}

JavaScript SDK: swarmhit.accounts.connections.withdraw(accountId, identifier)

Withdraw a pending connection request from this sender to a profile. Safe to call when nothing is pending: alreadyGone is true when LinkedIn had no pending invitation to cancel. It also marks the logged invitation withdrawn. Uses no cap, and works while the sender is paused.

Authorization

bearerAuth
AuthorizationBearer <token>

An API key created on the Access tokens page.

In: header

Path Parameters

id*string
identifier*string

The profile's public identifier (username).

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/accounts/string/connections/string"
{  "data": {    "withdrawn": true,    "alreadyGone": true  }}