Repository navigation
How do I delete a homework assignment or an event I added by mistake? #556
|
I set homework under the wrong subject and added an event on the wrong day. I'm an editor, but I can't find a delete button in the bot or in the app. |
Replies: 1 comment
|
Not from the bot or the app yet. In the bot, «📝 Домашнее задание» and «🎉 События» only add. The app writes neither (#466). The server can delete both through its API. Wrong text, right day and subject: set the homework again for the same day and subject. The bot replaces the text («✅ Задание обновлено.») and does not add a second entry. The bot cannot move or remove an assignment under the wrong day or subject. Through the API, as an editor or above. The deletion goes into «📜 Журнал», and subscribers are told.
Endpoints: https://github.com/lumenpearson/lessons/blob/main/docs/api.md#writing-class-data and https://github.com/lumenpearson/lessons/blob/main/docs/api.md#homework-and-events |
Not from the bot or the app yet. In the bot, «📝 Домашнее задание» and «🎉 События» only add. The app writes neither (#466). The server can delete both through its API.
Wrong text, right day and subject: set the homework again for the same day and subject. The bot replaces the text («✅ Задание обновлено.») and does not add a second entry. The bot cannot move or remove an assignment under the wrong day or subject.
Through the API, as an editor or above. The deletion goes into «📜 Журнал», and subscribers are told.
<server>is the address in the app's «Адрес сервера».curl -X POST https://<server>/api/v1/jo…