Create Mismatch Alerts

Creates trailer mismatch observation alerts for the authenticated customer from lists of USDOT numbers and MC numbers.

Authentication

  • Include your Access-Token and x-api-key in the header of your requests.

Permissions

The external-api-mismatch-observations or admin permission is required to access this endpoint.

Endpoint

  • URL: https://api.genlogs.io/mismatch-observations

  • Method: POST

Headers

  • Access-Token: (string, required): Access token obtained from the "Create Access Token" endpoint.

  • x-api-key (string, required): The API key provided by GenLogs.

Request body:

  • usdots (list of USDOTs, optional or required when mcs is not provided): list of the requested USDOT numbers to create a mismatch alert

  • mcs (list of MCs, optional or required when usdots is not provided): list of the requested MC numbers to create a mismatch alert

  • alert_name (srt, optional): related name of the alert(s) for client use.

Request Example:

Response:

  • 201 Created: A JSON object containing the confirmation message and the count of created alerts.

  • 400 Bad Request: If one of the required parameters is missing or incorrect.

  • 401 Unauthorized: If the authentication credentials (Access-Token) is missing or incorrect.

  • 403 Forbidden: If the permission has not been set to your user.

  • 500 Internal Server Error: If there is an issue on the server that prevents processing the request.

Response Body:

201 Created

400 Bad Request

401 Forbidden

403 Forbidden

Create mismatch observation alerts

post

Creates one alert row per USDOT or MC value. At least one of usdots or mcs must be non-empty. alert_name is optional; when omitted or blank, stored as null. logos is optional and, when present, is stored in logos and used by mismatch detection. Unknown JSON properties are rejected.

Authorizations
Access-TokenstringRequired
x-api-keystringRequired
Body
usdotsstring[]Optional

USDOT numbers (strings). Each non-empty entry creates one alert.

Default: []
mcsstring[]Optional

MC numbers (strings). Each non-empty entry creates one alert.

Default: []
logosstring[] · nullableOptional

Optional trailer logos list. Each value must be a non-empty string. Maximum amount is limited by MISMATCH_ALERTS_MAX_LOGOS.

alert_namestring · nullableOptional

Optional display name; omitted or whitespace-only is stored as null.

Responses
chevron-right
201

Mismatch alerts created successfully.

application/json
messagestringRequiredExample: Mismatch alerts created successfully.
post
/mismatch-observations

Last updated