This API disables notifications for a cargo (documentId) if there are users subscribed to receive them.
Authentication
The Alert API uses Basic Authorization on Swagger UI.
Authentication Steps
1.
Click the [Authorize] button in the top right corner.
2.
Enter the provided username and password in the pop-up window.
3.
Click [Authorize] again to proceed with authentication.
4.
After successful login, click [Close] to close the window.
All API requests from Swagger UI will automatically include the authorization token.
Request Information
Request URL
Request URL : [DELETE] https://insight.seavantage.com/api/alert/cargo/{documentId}
Execution Steps
1.
2.
Navigate to the /alert/cargo/{documentId} endpoint.
3.
Click [Try it out] to activate input fields.
4.
Enter values according to the following request parameters:
•
5.
Click [Execute].
6.
View results in the response section.
Response Information
Response Examples
•
Success
◦
HTTP Status: 204 No Content
◦
No Response Body
•
Failure
{
"code": 400,
"message": "Invalid request body. Trace id : 5d4c6d66874f3faeeb186d5137bc799f",
"error": true,
"timestamp": "2024-12-01T12:00:00",
"response": null
}
JSON
복사
Response Field Descriptions
Top-Level Response Fields
Field | Example Value | Description |
code | 400 | Response status code (used in the same way as standard HTTP status codes).
See the list of codes below for reference. |
message | Invalid request body. | Response message (description based on status) |
error | true | Error flag
true: error occurred
false: successful processing |
timestamp | 2024-12-01T12:00:00 | Time of response creation (UTC) |
response | Object or null | Returns an Object if data exists, or null if no data is found. |
Response Codes
Code | Description |
204 | Deleted |
400 | Bad request |
401 | Unauthorized |
403 | Forbidden |
422 | Unprocessable entity |
429 | Too many requests |