Files
NetAlertX/docs/API_ONLINEHISTORY.md
jokob-sk 40e9fbdb3f
Some checks failed
Deploy MkDocs / deploy (push) Has been cancelled
Code checks / check-url-paths (push) Has been cancelled
docker / docker_dev (push) Has been cancelled
docs
2025-08-24 13:12:33 +10:00

652 B
Executable File

Online History API Endpoints

Manage the online history records of devices. Currently, the API supports deletion of all history entries. All endpoints require authorization.


1. Delete Online History

  • DELETE /history Remove all records from the online history table (Online_History). This operation cannot be undone.

Response (success):

{
  "success": true,
  "message": "Deleted online history"
}

Error Responses:

  • Unauthorized → HTTP 403

Example curl Request

curl -X DELETE "http://<server_ip>:<GRAPHQL_PORT>/history" \
  -H "Authorization: Bearer <API_TOKEN>"