- Home
- API Enriched
- Ddos
- infraprotect
- Edit event.
Edit event.
const url = 'https://example-corp.console.ves.volterra.io/api/v1/api/production/us-east-1/namespaces/default/api/infraprotect/namespaces/example/infraprotect/event/example';const options = { method: 'PUT', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"description":"example","end_time":"2026-04-15T12:00:00Z","event_attachments":[{"attachment_id":"example","attachment_type":"ATTACHMENT_TYPE_UNKNOWN","end_time":"2026-04-15T12:00:00Z","gos_name":"example","gos_version":"example","name":"example","size_bytes":"example","start_time":"2026-04-15T12:00:00Z"}],"event_id":"example","name":"example","namespace":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example-corp.console.ves.volterra.io/api/v1/api/production/us-east-1/namespaces/default/api/infraprotect/namespaces/example/infraprotect/event/example \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "description": "example", "end_time": "2026-04-15T12:00:00Z", "event_attachments": [ { "attachment_id": "example", "attachment_type": "ATTACHMENT_TYPE_UNKNOWN", "end_time": "2026-04-15T12:00:00Z", "gos_name": "example", "gos_version": "example", "name": "example", "size_bytes": "example", "start_time": "2026-04-15T12:00:00Z" } ], "event_id": "example", "name": "example", "namespace": "example" }'Allows editing of an event, setting its end date and upload any relevant pieces of information.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Namespace This request is supported only in system namespace.
Alert ID ID of the event we want to edit.
Request Bodyrequired
Section titled “Request Bodyrequired”Request to GET a single event.
object
New description of the event.
New end time of the event (note that end time is always set manually)
List of event’s attachments.
Event attachment record (pcap, or any arbitrary file)
object
ID of the attachment.
End time as an RFC3339 string.
Generic object storage name of the attachment.
Generic object storage version of the attachment.
Name of the attachment.
Size of the attachment.
Start time as an RFC3339 string.
ID of the event we want to edit.
New name of the event.
This request is supported only in system namespace.
Responses
Section titled “Responses”A successful response.
Updated event as a response to an event editing.
object
object
Attachments on an event.
Event attachment record (pcap, or any arbitrary file)
object
ID of the attachment.
End time as an RFC3339 string.
Generic object storage name of the attachment.
Generic object storage version of the attachment.
Name of the attachment.
Size of the attachment.
Start time as an RFC3339 string.
Creator of the event.
More detailed description of the event. Most of the time list of actions taken.
End time as an RFC3339 string.
True if event has any attachment other than PCAP files.
True if the event already has details assigned, otherwise false.
ID of the event used to uniquely identify it.
Target IP
Mitigation the event is related to.
Name of an event.
Network the event is related to.
Start time as an RFC3339 string.
Example
{ "event": { "attachments": [ { "attachment_type": "ATTACHMENT_TYPE_UNKNOWN" } ] }}Returned when operation is not authorized.
Examplegenerated
exampleReturned when there is no permission to access resource.
Examplegenerated
exampleReturned when resource is not found.
Examplegenerated
exampleReturned when operation on resource is conflicting with current value.
Examplegenerated
exampleReturned when operation has been rejected as it is happening too frequently.
Examplegenerated
exampleReturned when server encountered an error in processing API.
Examplegenerated
exampleReturned when service is unavailable temporarily.
Examplegenerated
exampleReturned when server timed out processing request.
Examplegenerated
example