1. Alerts
api-security
  • Security-Api
    • Roles
      • Index
      • Create
      • Show
      • Update
      • Delete
    • Devices
      • Index
      • Show
      • Create
      • Update
      • Delete
    • Security Event
      • Index
      • Show
      • Create
      • Update
      • Delete
    • Alerts
      • Index
        GET
      • Show
        GET
      • Create
        POST
      • Update
        PUT
      • Delete
        DELETE
    • Incidents
      • Index
      • Show
      • Create
      • Update
      • Delete
    • Incident Comments
      • Index
      • Show
      • Create
      • Update
      • Delete
    • Auth
      • Login
      • Logout
      • Me
    • Dashboard
      • Index
    • Notifications
      • Index
      • Unread
      • Mark As Read
  1. Alerts

Create

Developing
POST
http://127.0.0.1:8000/api/alerts
Creates a new alert in the system.

Request

Header Params

Body Params application/jsonRequired

Examples

Responses

🟢200Success Create
application/json
Bodyapplication/json

🟠422Error Create
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'http://127.0.0.1:8000/api/alerts' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {token}' \
--header 'Content-Type: application/json' \
--data '{
    "security_event_id": 1,
    "title": "Brute Force Detected",
    "description": "Multiple failed login attempts detected from external IP.",
    "status": "pending"
}'
Response Response Example
200 - Éxito
{
    "message": "Alert created successfully",
    "data": {
        "id": 3,
        "security_event": "unauthorized_access",
        "title": "Unauthorized Access Alert",
        "description": "Unauthorized access attempt detected on a protected endpoint.",
        "status": "pending"
    }
}
Modified at 2026-06-19 14:43:09
Previous
Show
Next
Update
Built with