Skip to main content

Unsubscribe From Event Or Remove request

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

note

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

info

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

HTTP Request

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

Parameters

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

Example Request

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

Responses

StatusMeaningDescriptionSchema
204No ContentResponse status codeNone