Purge notifications
POST
/asset/<assetId>/purge-notifications
Description
Purge notifications by notification kind for a specific asset.
Path parameters
Param | Description |
---|---|
assetId |
Asset Id. |
Query parameters
none
Body
Param | Type | Required | Description |
---|---|---|---|
kind |
string | Yes | One of CheckMissing , CheckError , CheckAged , CheckInvalidResult , CheckInvalidTimestamp or CheckInvalidData . |
Return codes
Error code | Reason |
---|---|
204 |
Success. |
400 |
Invalid body. |
401 |
Invalid or missing token. |
403 |
Insufficient permissions (required: API +ASSET_MANAGEMENT ). |
404 |
Asset not found. |
Example
Curl request:
curl \
-X POST 'https://api.infrasonar.com/asset/123/purge-notifications' \
-H 'Authorization: Bearer XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' \
-H 'Content-Type: application/json' \
--data-raw '{
"kind": "CheckError"
}'