Update incident
curl --request PATCH \
--url https://app.aegister.com/api/v1/v-ciso/incidents/{organizationid}/{incidentid} \
--header 'Content-Type: application/json' \
--header 'X-Aegister-Token: <api-key>' \
--data '
{
"title": "<string>",
"reference_code": "<string>",
"classification": {},
"metadata": {},
"subject_type": "<string>",
"24h_notification": {},
"72h_notification": {},
"full_report": {}
}
'import requests
url = "https://app.aegister.com/api/v1/v-ciso/incidents/{organizationid}/{incidentid}"
payload = {
"title": "<string>",
"reference_code": "<string>",
"classification": {},
"metadata": {},
"subject_type": "<string>",
"24h_notification": {},
"72h_notification": {},
"full_report": {}
}
headers = {
"X-Aegister-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'X-Aegister-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: '<string>',
reference_code: '<string>',
classification: {},
metadata: {},
subject_type: '<string>',
'24h_notification': {},
'72h_notification': {},
full_report: {}
})
};
fetch('https://app.aegister.com/api/v1/v-ciso/incidents/{organizationid}/{incidentid}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.aegister.com/api/v1/v-ciso/incidents/{organizationid}/{incidentid}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'title' => '<string>',
'reference_code' => '<string>',
'classification' => [
],
'metadata' => [
],
'subject_type' => '<string>',
'24h_notification' => [
],
'72h_notification' => [
],
'full_report' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Aegister-Token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.aegister.com/api/v1/v-ciso/incidents/{organizationid}/{incidentid}"
payload := strings.NewReader("{\n \"title\": \"<string>\",\n \"reference_code\": \"<string>\",\n \"classification\": {},\n \"metadata\": {},\n \"subject_type\": \"<string>\",\n \"24h_notification\": {},\n \"72h_notification\": {},\n \"full_report\": {}\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("X-Aegister-Token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://app.aegister.com/api/v1/v-ciso/incidents/{organizationid}/{incidentid}")
.header("X-Aegister-Token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"<string>\",\n \"reference_code\": \"<string>\",\n \"classification\": {},\n \"metadata\": {},\n \"subject_type\": \"<string>\",\n \"24h_notification\": {},\n \"72h_notification\": {},\n \"full_report\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.aegister.com/api/v1/v-ciso/incidents/{organizationid}/{incidentid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-Aegister-Token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"<string>\",\n \"reference_code\": \"<string>\",\n \"classification\": {},\n \"metadata\": {},\n \"subject_type\": \"<string>\",\n \"24h_notification\": {},\n \"72h_notification\": {},\n \"full_report\": {}\n}"
response = http.request(request)
puts response.read_body{
"error": 0,
"messages": "<array>",
"data": {
"id": 123,
"title": "<string>",
"reference_code": "<string>",
"classification": {},
"metadata": {},
"acn_event": {},
"acn_sections": {},
"ai_blob": {},
"phases": {},
"organization_id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"24h_notification": {},
"72h_notification": {},
"full_report": {}
}
}{
"error": 0,
"messages": "<array>"
}{
"error": 0,
"messages": "<array>"
}{
"error": 0,
"messages": "<array>"
}Incidenti
Aggiorna incidente
Aggiorna parzialmente una notifica di incidente.
PATCH
/
api
/
v1
/
v-ciso
/
incidents
/
{organizationid}
/
{incidentid}
Update incident
curl --request PATCH \
--url https://app.aegister.com/api/v1/v-ciso/incidents/{organizationid}/{incidentid} \
--header 'Content-Type: application/json' \
--header 'X-Aegister-Token: <api-key>' \
--data '
{
"title": "<string>",
"reference_code": "<string>",
"classification": {},
"metadata": {},
"subject_type": "<string>",
"24h_notification": {},
"72h_notification": {},
"full_report": {}
}
'import requests
url = "https://app.aegister.com/api/v1/v-ciso/incidents/{organizationid}/{incidentid}"
payload = {
"title": "<string>",
"reference_code": "<string>",
"classification": {},
"metadata": {},
"subject_type": "<string>",
"24h_notification": {},
"72h_notification": {},
"full_report": {}
}
headers = {
"X-Aegister-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'X-Aegister-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: '<string>',
reference_code: '<string>',
classification: {},
metadata: {},
subject_type: '<string>',
'24h_notification': {},
'72h_notification': {},
full_report: {}
})
};
fetch('https://app.aegister.com/api/v1/v-ciso/incidents/{organizationid}/{incidentid}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.aegister.com/api/v1/v-ciso/incidents/{organizationid}/{incidentid}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'title' => '<string>',
'reference_code' => '<string>',
'classification' => [
],
'metadata' => [
],
'subject_type' => '<string>',
'24h_notification' => [
],
'72h_notification' => [
],
'full_report' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Aegister-Token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.aegister.com/api/v1/v-ciso/incidents/{organizationid}/{incidentid}"
payload := strings.NewReader("{\n \"title\": \"<string>\",\n \"reference_code\": \"<string>\",\n \"classification\": {},\n \"metadata\": {},\n \"subject_type\": \"<string>\",\n \"24h_notification\": {},\n \"72h_notification\": {},\n \"full_report\": {}\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("X-Aegister-Token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://app.aegister.com/api/v1/v-ciso/incidents/{organizationid}/{incidentid}")
.header("X-Aegister-Token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"<string>\",\n \"reference_code\": \"<string>\",\n \"classification\": {},\n \"metadata\": {},\n \"subject_type\": \"<string>\",\n \"24h_notification\": {},\n \"72h_notification\": {},\n \"full_report\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.aegister.com/api/v1/v-ciso/incidents/{organizationid}/{incidentid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-Aegister-Token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"<string>\",\n \"reference_code\": \"<string>\",\n \"classification\": {},\n \"metadata\": {},\n \"subject_type\": \"<string>\",\n \"24h_notification\": {},\n \"72h_notification\": {},\n \"full_report\": {}\n}"
response = http.request(request)
puts response.read_body{
"error": 0,
"messages": "<array>",
"data": {
"id": 123,
"title": "<string>",
"reference_code": "<string>",
"classification": {},
"metadata": {},
"acn_event": {},
"acn_sections": {},
"ai_blob": {},
"phases": {},
"organization_id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"24h_notification": {},
"72h_notification": {},
"full_report": {}
}
}{
"error": 0,
"messages": "<array>"
}{
"error": 0,
"messages": "<array>"
}{
"error": 0,
"messages": "<array>"
}Autorizzazioni
ApiKeyAuthApiKeyQueryParam
Corpo
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
Incident title.
External reference code.
Classification data.
Show child attributes
Show child attributes
Additional metadata.
Show child attributes
Show child attributes
Incident status.
draft- draftsubmitted- submittedclosed- closed
Opzioni disponibili:
draft, submitted, closed Subject type, routed into metadata.
Phase-specific data for 24-hour notification.
Show child attributes
Show child attributes
Phase-specific data for 72-hour notification.
Show child attributes
Show child attributes
Phase-specific data for full report.
Show child attributes
Show child attributes
⌘I

