Skip to content

Event handler

POST
https://services.kwant.pro/api/front/misc/click-event

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:

Request body
{
"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:

Response body
{
"message": "Event added"
}