curl --location 'http://127.0.0.1:8000/api/security_events' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {token}' \
--header 'Content-Type: application/json' \
--data '{
"device_id": 2,
"user_role": "admin",
"event_type": "multiple_failed_logins",
"description": "Multiple failed login attempts detected from the same source IP.",
"source_ip": "10.0.0.45",
"severity": "low",
"event_date": "2026-05-28 12:05:00"
}'{
"message": "Security event created successfully",
"data": {
"id": 11,
"device_id": 3,
"user_role": "analyst",
"event_type": "privilege_escalation_attempt",
"description": "Suspicious privilege escalation activity detected from an external source.",
"source_ip": "1.1.1.1",
"severity": "high",
"event_date": "2026-06-21 14:30:00",
"abuse_confidence_score": 0,
"country_code": "AU",
"usage_type": "Content Delivery Network",
"isp": "APNIC and Cloudflare DNS Resolver project",
"is_tor": false,
"ip_reputation_status": "clean"
}
}