Skip to main content

Unsubscribe From Group Or Remove request

This endpoint allows users to unsubscribe from the group identified by {id}. If the user is not subscribed to the group but has requested to participate to a private group then remove the request to participate.

note

By passing the optional param user an group manager is able to remove the user from the group.

info

This operation requires only authentication without the user param. It requires also that the user is the manager of the group if the user param is passed.

HTTP Request

DELETE /api/v2/group/{id}/subscribe/

Parameters

NameInTypeRequiredDescription
idpathintegertrueA unique integer value identifying this group
userpathintegerfalseA unique integer value identifying the user to remove from the group

Example Request

const headers = {
'Content-Type':'application/x-www-form-urlencoded',
'Accept':'application/json',
'Authorization: Bearer <token>'
};
fetch('/api/v2/group/{id}/subscribe/',
{
method: 'DELETE',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});

Responses

StatusMeaningDescriptionSchema
204No ContentResponse status codeNone