For the complete documentation index, see llms.txt. This page is also available as Markdown.

Edit Alert

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 triggered and perform the search on the detections based on the alerts 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:

  • Access-Token: The access token obtained from the "Create Access Token" endpoint.

  • x-api-key: The API key provided by GenLogs. This header must be included in the request.


Permissions

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


Endpoint

  • URL: https://api.genlogs.io/alerts/{alert_id}

  • Method: PATCH


Request Parameters

Only the following fields are updatable:

  • alert_name (string, Optional): The name of the alert for identification. ​

  • location_state (string, Optional): State where the alert is triggered. ​

  • location_city (string, Optional): City where the alert is triggered. ​

  • license_plate (string, Optional): License plate number related to the alert. ​

  • location_plate_state (string, Optional): State where the license plate is registered. ​

  • usdot_number (string, Optional): USDOT number of the vehicle. ​

  • mc_number (string, Optional): MC number of the vehicle. ​

  • vin (string, Optional): Last 6 digits of the VIN. ​

  • cab_number (string, Optional): Cab number of the vehicle. ​

  • equipment_type (string, Optional): Equipment type of the trailer. ​

  • trailer_logo (string, Optional): Logo displayed on the trailer. ​

    • You can see the list of available logos at this endpoint.

  • trailer_number (string, Optional): Trailer number associated with the alert. ​

  • exact_match_trailer_number (boolean, Optional): Whether to do an exact match on trailer number.

  • cc_emails (array of strings, Optional): Additional recipients for email notifications. ​

  • alert_type (string, Optional): normal or hot. Defines how often alerts are triggered. ​

  • disabled (boolean, Optional): Indicates whether the alert is active. ​

  • start_date (string (ISO 8601 date-time string), Optional): Alert start date. ​

  • end_date (string (ISO 8601 date-time string), Optional): Alert end date. ​

  • deep_search (boolean, Optional): Enables deeper asset match scanning. ​

  • notification_channels (array of strings, Optional): List of channels to receive notifications.

  • 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

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.

Authorizations
Access-TokenstringRequired

JWT Access Token required for authentication

Path parameters
alert_idintegerRequired
Body

Schema for partial updates of alerts (PATCH operations). All fields are optional - only provided fields will be updated.

alert_namestring · nullableOptional
location_statestring · nullableOptional
location_citystring · nullableOptional
license_platestring · nullableOptional
license_plate_statestring · nullableOptional
usdot_numberstring · nullableOptional
chassis_numberstring · nullableOptional
exact_match_chassis_numberboolean · nullableOptionalDefault: false
container_numberstring · nullableOptional
equipment_typestring · nullableOptional
exact_match_container_numberboolean · nullableOptionalDefault: false
mc_numberstring · nullableOptional
vinstring · nullableOptional
cab_numberstring · nullableOptional
trailer_logostring · nullableOptional
trailer_numberstring · nullableOptional
disabledboolean · nullableOptional
cc_emailsstring[] · nullableOptional
alert_typestring · nullableOptional
exact_match_trailer_numberboolean · nullableOptional
start_datestring · date-time · nullableOptional

ISO 8601 date-time. Values with Z or timezone offsets are normalized to UTC and stored/returned without timezone information.

Example: 2025-06-27T15:46:59.165Z
end_datestring · date-time · nullableOptional

ISO 8601 date-time. Values with Z or timezone offsets are normalized to UTC and stored/returned without timezone information.

Example: 2025-06-27T15:46:59.165Z
deep_searchstring · nullableOptional
notification_channelsstring[] · nullableOptional
Responses
200

Successful Response

application/json

Public API response schema for alerts - extends base with response-specific fields

alert_namestringRequired
location_statestring · nullableOptional
location_citystring · nullableOptional
license_platestring · nullableOptional
license_plate_statestring · nullableOptional
usdot_numberstring · nullableOptional
chassis_numberstring · nullableOptional
exact_match_chassis_numberboolean · nullableOptionalDefault: false
container_numberstring · nullableOptional
equipment_typestring · nullableOptional
exact_match_container_numberboolean · nullableOptionalDefault: false
mc_numberstring · nullableOptional
vinstring · nullableOptional
cab_numberstring · nullableOptional
trailer_logostring · nullableOptional
trailer_numberstring · nullableOptional
disabledbooleanOptionalDefault: false
cc_emailsstring[] · nullableOptional
alert_typestringOptionalDefault: normal
exact_match_trailer_numberboolean · nullableOptionalDefault: false
start_datestring · date-time · nullableOptional

Returned as a timezone-free UTC date-time string after normalization.

end_datestring · date-time · nullableOptional

Returned as a timezone-free UTC date-time string after normalization.

deep_searchstring · nullableOptional
idintegerRequired
emailstringRequired
last_updated_timestampstring · date-timeRequired
insert_timestampstring · date-timeRequired
notification_channelsstring[]OptionalDefault: []
patch/alerts/{alert_id}

Last updated