Update notification with allowed changes
Allows you to update a notification for a user
PATCH
/api/notifications/{id}
curl \
--request PATCH 'http://localhost:4000/api/notifications/{id}' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"seen_in_app":true}'
Request examples
{
"seen_in_app": true
}
Response examples (200)
{
"id": "f260f115-f2e6-4dde-bcab-98b10fdb8cf6",
"name": "Doors open during bake mode",
"rules": [
{
"op": "like",
"tag": "BoothMode",
"value": "Bake%"
},
{
"op": "==",
"tag": "I_xDoorClosed",
"value": false
}
],
"enabled": true,
"category": "Safety & Regulatory",
"user_ids": [
"a920bc22-de00-1983-bbca-90201849fbac",
"29302931-fabe-aaac-910a-119301b8ac91"
],
"booth_ids": [
"a920bc22-de00-1983-bbca-90201849fbac",
"29302931-fabe-aaac-910a-119301b8ac91"
],
"account_id": "a9299bca-acc2-4dde-1111-83a08ca12128",
"created_at": "2025-07-30 13:00:00Z",
"created_by": "371a9242-02da-433d-a25a-b5031d5f3b46",
"event_type": "tag",
"send_email": false,
"updated_at": "2025-07-30 13:00:00Z",
"description": "Event definition to check if doors were opened while the booth was in bake mode",
"min_duration": 2,
"last_edited_by": "371a9242-02da-433d-a25a-b5031d5f3b46",
"evaluation_period": "daily",
"send_notification_at": "09:00:00"
}
Response examples (200)
{
"id": "f260f115-f2e6-4dde-bcab-98b10fdb8cf6",
"name": "Doors open during bake mode",
"rules": [
{
"op": "like",
"tag": "BoothMode",
"value": "Bake%"
},
{
"op": "==",
"tag": "I_xDoorClosed",
"value": false
}
],
"enabled": true,
"category": "Safety & Regulatory",
"user_ids": [
"a920bc22-de00-1983-bbca-90201849fbac",
"29302931-fabe-aaac-910a-119301b8ac91"
],
"booth_ids": [
"a920bc22-de00-1983-bbca-90201849fbac",
"29302931-fabe-aaac-910a-119301b8ac91"
],
"account_id": "a9299bca-acc2-4dde-1111-83a08ca12128",
"created_at": "2025-07-30 13:00:00Z",
"created_by": "371a9242-02da-433d-a25a-b5031d5f3b46",
"event_type": "tag",
"send_email": false,
"updated_at": "2025-07-30 13:00:00Z",
"description": "Event definition to check if doors were opened while the booth was in bake mode",
"min_duration": 2,
"last_edited_by": "371a9242-02da-433d-a25a-b5031d5f3b46",
"evaluation_period": "daily",
"send_notification_at": "09:00:00"
}
Response examples (400)
{
"error": "Error Reason"
}
Response examples (400)
{
"error": "Error Reason"
}
Response examples (401)
{
"error": "Error Reason"
}
Response examples (401)
{
"error": "Error Reason"
}
Response examples (404)
{
"error": "Error Reason"
}
Response examples (404)
{
"error": "Error Reason"
}