|
1 | 1 | # Update
|
2 | 2 |
|
3 |
| -Update an existing Alert, like add observables, mark as read, update status ... |
| 3 | +Update an *Alert*. |
4 | 4 |
|
5 | 5 | ## Query
|
6 | 6 |
|
| 7 | +```plain |
| 8 | +PATCH /api/alert/{id} |
7 | 9 | ```
|
8 | 10 |
|
9 |
| -``` |
| 11 | +with: |
10 | 12 |
|
| 13 | +- `id`: id of the Alert |
11 | 14 |
|
12 |
| -## Request Body Example |
| 15 | +## Request Body Example |
13 | 16 |
|
14 |
| -```json |
| 17 | +!!! Example "" |
| 18 | + |
| 19 | + ```json |
| 20 | + { |
| 21 | + "description": "SIEM automated alert: the user [email protected] has posted information on a known phishing url. " |
| 22 | + } |
| 23 | + ``` |
15 | 24 |
|
16 |
| -``` |
| 25 | +## Response |
| 26 | + |
| 27 | +### Status codes |
17 | 28 |
|
| 29 | +- `200`: if *Alert* is updated successfully |
| 30 | +- `401`: Authentication error |
18 | 31 |
|
19 |
| -## Response Body Example |
| 32 | +### Response Body Example |
20 | 33 |
|
21 |
| -```json |
| 34 | +!!! Example "" |
22 | 35 |
|
23 |
| -``` |
| 36 | + ```json |
| 37 | + { |
| 38 | + "_id": "~624443400", |
| 39 | + "id": "~624443400", |
| 40 | + |
| 41 | + "updatedBy": null, |
| 42 | + "createdAt": 1620373264377, |
| 43 | + "updatedAt": null, |
| 44 | + "_type": "alert", |
| 45 | + "type": "external", |
| 46 | + "source": "SIEM", |
| 47 | + "sourceRef": "47e379", |
| 48 | + "externalLink": null, |
| 49 | + "case": null, |
| 50 | + "title": "User posted information on known phishing URL", |
| 51 | + "description": "SIEM automated alert: the user [email protected] has posted information on a known phishing url. ", |
| 52 | + "severity": 2, |
| 53 | + "date": 1620373264000, |
| 54 | + "tags": [ |
| 55 | + "source:siem", |
| 56 | + "log-source:proxy" |
| 57 | + ], |
| 58 | + "tlp": 3, |
| 59 | + "pap": 2, |
| 60 | + "status": "Ignored", |
| 61 | + "follow": true, |
| 62 | + "customFields": { |
| 63 | + "businessUnit": { |
| 64 | + "string": "Finance" |
| 65 | + }, |
| 66 | + "location": { |
| 67 | + "string": "Sydney" |
| 68 | + } |
| 69 | + }, |
| 70 | + "caseTemplate": null, |
| 71 | + "artifacts": [ |
| 72 | + { |
| 73 | + "_id": "~665772152", |
| 74 | + "id": "~665772152", |
| 75 | + |
| 76 | + "createdAt": 1620373264410, |
| 77 | + "_type": "case_artifact", |
| 78 | + "dataType": "username", |
| 79 | + |
| 80 | + "startDate": 1620373264410, |
| 81 | + "tlp": 2, |
| 82 | + "tags": [], |
| 83 | + "ioc": false, |
| 84 | + "sighted": false, |
| 85 | + "reports": {}, |
| 86 | + "stats": {} |
| 87 | + }, |
| 88 | + { |
| 89 | + "_id": "~677015568", |
| 90 | + "id": "~677015568", |
| 91 | + |
| 92 | + "createdAt": 1620373264398, |
| 93 | + "_type": "case_artifact", |
| 94 | + "dataType": "domain", |
| 95 | + "data": "pl-getbuys.icu", |
| 96 | + "startDate": 1620373264398, |
| 97 | + "tlp": 2, |
| 98 | + "tags": [], |
| 99 | + "ioc": false, |
| 100 | + "sighted": false, |
| 101 | + "reports": {}, |
| 102 | + "stats": {} |
| 103 | + }, |
| 104 | + { |
| 105 | + "_id": "~677019664", |
| 106 | + "id": "~677019664", |
| 107 | + |
| 108 | + "createdAt": 1620373264405, |
| 109 | + "_type": "case_artifact", |
| 110 | + "dataType": "mail", |
| 111 | + |
| 112 | + "startDate": 1620373264405, |
| 113 | + "tlp": 2, |
| 114 | + "tags": [], |
| 115 | + "ioc": false, |
| 116 | + "sighted": false, |
| 117 | + "reports": {}, |
| 118 | + "stats": {} |
| 119 | + }, |
| 120 | + { |
| 121 | + "_id": "~706650224", |
| 122 | + "id": "~706650224", |
| 123 | + |
| 124 | + "createdAt": 1620373264391, |
| 125 | + "_type": "case_artifact", |
| 126 | + "dataType": "url", |
| 127 | + "data": "https://poczta.pl-getbuys.icu/", |
| 128 | + "startDate": 1620373264391, |
| 129 | + "tlp": 2, |
| 130 | + "tags": [], |
| 131 | + "ioc": false, |
| 132 | + "sighted": false, |
| 133 | + "message": "http method: POST", |
| 134 | + "reports": {}, |
| 135 | + "stats": {} |
| 136 | + } |
| 137 | + ], |
| 138 | + "similarCases": [] |
| 139 | + } |
| 140 | + ``` |
0 commit comments