Skip to main content

Cancel a Request Connection

This endpoint cancels a request connection for a user

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/cancel_request/

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/cancel_request/',
{
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"
}