Skip to main content

Remove a Connection

This endpoint removes connection with the user identified by {id}

info

This operation requires the community to be set to friendship mode.

info

This operation requires authentication.

HTTP Request

POST /api/v2/user/{id}/connection/remove/

Parameters

NameInTypeRequiredDescription
idpathstringtrueA unique integer value identifying this user

Example Request

const headers = {
'Content-Type':'application/x-www-form-urlencoded',
'Accept':'application/json',
'Authorization: Bearer <token>'
};

fetch('/api/v2/user/{id}/connection/remove/',
{
method: 'POST',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});

Responses

StatusMeaningDescriptionSchema
200OKResponse status codeInline

Connection Status values

ParameterValue
connection_statusconnected
connection_statussent_connection_request
connection_statusreceived_connection_request
connection_statusnull

Example responses

{
"connection_status": "string"
}