https://services.kwant.pro/api/front/misc/click-eventEvent handler
This endpoint is used to handle click events. It is called when a user clicks on a button or a link.
Request
The request body should contain the following parameters:
{ "type": "department", // handled types : department, guardian, product "trigger_id": 202, // id of the element that triggered the event (department id, guardian id, product id) "logged_in": 0 // 1 if the user is logged in, 0 otherwise}Response
The response will contain the following parameters:
{"message": "Event added"}{"message": "Invalid event type"}