From 02d80b6a3d5afc5300b089c4abfa10cdd42b8c63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Leonard?= Date: Mon, 20 Sep 2021 16:43:00 +0200 Subject: [PATCH] #10 v0 --- docs/thehive/api/alert/list-observables.md | 12 +++--------- docs/thehive/api/alert/list.md | 12 ++++++------ 2 files changed, 9 insertions(+), 15 deletions(-) diff --git a/docs/thehive/api/alert/list-observables.md b/docs/thehive/api/alert/list-observables.md index 16348552..6146c6ca 100644 --- a/docs/thehive/api/alert/list-observables.md +++ b/docs/thehive/api/alert/list-observables.md @@ -5,7 +5,7 @@ List observables of an *Alerts*. ## Query ```plain -POST /api/v1/query?name +POST /api/v0/query?name ``` ## Request Body Example @@ -64,6 +64,7 @@ POST /api/v1/query?name ... { "_id": "~11111462234", + "id": "~11111462234", "_type": "Observable", "_createdBy": "system@thehive.local", "_createdAt": 1629309258431, @@ -71,17 +72,10 @@ POST /api/v1/query?name "data": "1.2.3.4", "startDate": 1629309258431, "tlp": 0, - "tags": [], "ioc": false, "sighted": false, "reports": {}, - "message": "", - "extraData": { - "seen": { - "seen": 3, - "ioc": false - } - }, + "stats": {} } ... ] diff --git a/docs/thehive/api/alert/list.md b/docs/thehive/api/alert/list.md index 910f1237..82cc2d42 100644 --- a/docs/thehive/api/alert/list.md +++ b/docs/thehive/api/alert/list.md @@ -65,9 +65,11 @@ POST /api/v1/query?name=alerts "_type": "Alert", "_createdBy": "florian@strangebee.com", "_createdAt": 1620393156944, + "status": "New", "type": "external", "source": "MISP server", "sourceRef": "event_1576", + "externalLink": null, "title": "Phishing list update 7.5.2021", "description": "A curated list of phishing IOCs", "severity": 2, @@ -81,12 +83,10 @@ POST /api/v1/query?name=alerts "read": false, "follow": true, "customFields": [], - "observableCount": 16, - "extraData": { - "importDate": null, - "caseNumber": null - } - }, + "caseTemplate": null, + "artifacts": [], + "similarCases": [] + } ... ] ``` \ No newline at end of file