Edit Alert | Genlogs API Docs

On this page

Allows API users to update existing alerts. Alerts can currently be created either from Asset Locator Portal or via Create alert. These alerts are triggered when a scheduled job is performed and search the detections based on the alert criteria. Notifications are sent via email and webhooks.

This endpoint is restricted to authorized users with appropriate permissions.


Authentication

Include the following headers in your requests:


Permissions

Make sure your API user is created with a role that includes either admin or edit-alert-endpoint permissions.


Endpoint


Request Parameters

Only the following fields are updatable:

start_date and end_date accept ISO 8601 date-time strings with Z, timezone offsets, or naive date-time strings. Timezone-aware input is normalized to UTC and stored/returned without timezone. Invalid date-time strings return 400.


Response Codes

Code Meaning
200 OK Successfully updated the alert.
400 Bad Request Missing or invalid parameters.
401 Unauthorized Authentication credentials are missing or invalid.
403 Forbidden User lacks required permissions.
404 Not Found No alert found with the specified ID.
500 Internal Server Error An unexpected server error occurred.

External Patch Alert

patch/alerts/{alert_id}

Partially update an existing alert by alert_id. start_date and end_date accept ISO 8601 date-time strings with Z, timezone offsets, or no timezone. Timezone-aware values are normalized to UTC and returned without timezone information.


Authorization

APIKeyHeader

Path parameters

Body

{
  "alert_name": "text",
  "location_state": "text",
  "location_city": "text",
  "license_plate": "text",
  "license_plate_state": "text",
  "usdot_number": "text",
  "chassis_number": "text",
  "exact_match_chassis_number": false,
  "container_number": "text",
  "equipment_type": "text",
  "exact_match_container_number": false,
  "mc_number": "text",
  "vin": "text",
  "cab_number": "text",
  "trailer_logo": "text",
  "trailer_number": "text",
  "disabled": true,
  "cc_emails": ["text"],
  "alert_type": "text",
  "exact_match_trailer_number": true,
  "start_date": "2025-06-27T15:46:59.165Z",
  "end_date": "2025-06-27T15:46:59.165Z",
  "deep_search": "text",
  "notification_channels": ["text"]
}

Successful Response

{
  "alert_name": "text",
  "location_state": "text",
  "location_city": "text",
  "license_plate": "text",
  "license_plate_state": "text",
  "usdot_number": "text",
  "chassis_number": "text",
  "exact_match_chassis_number": false,
  "container_number": "text",
  "equipment_type": "text",
  "exact_match_container_number": false,
  "mc_number": "text",
  "vin": "text",
  "cab_number": "text",
  "trailer_logo": "text",
  "trailer_number": "text",
  "disabled": false,
  "cc_emails": ["text"],
  "alert_type": "normal",
  "exact_match_trailer_number": false,
  "start_date": "2026-07-17T15:24:35.262Z",
  "end_date": "2026-07-17T15:24:35.262Z",
  "deep_search": "text",
  "id": 1,
  "email": "text",
  "last_updated_timestamp": "2026-07-17T15:24:35.262Z",
  "insert_timestamp": "2026-07-17T15:24:35.262Z",
  "notification_channels": ["text"]
}

Last updated 1 month ago