Bulk update events using filter query
patch
/sia/v1/event/selectAllUpdate
Update the events in bulk matching the given smart search filters criteria. The given update operation is performed on all events that match the smart search filters. Events with document IDs specified in excludeList are skipped from the update operation. Updates to owner name, event status and event analysis status are supported.
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object
-
excludeList: array
excludeList
List of event document IDs which should be excluded from applying patch operation.
-
filters: array
filters
Applied filters defining a smart search query.
-
operation: object
operation
Patch operation that should be performed on the events matching the filters criteria.
Nested Schema : excludeList
Type:
array
List of event document IDs which should be excluded from applying patch operation.
Show Source
Nested Schema : operation
Type:
object
Patch operation that should be performed on the events matching the filters criteria.
Match All
Patch operation that should be performed on the events matching the filters criteria.
Show Source
Nested Schema : SmartSearchFilterChip
Type:
Show Source
object
-
filter: string
Name of the smart search filter.
-
value:
Value of the smart search filter.
Nested Schema : EventBulkUpdateRecord
Type:
Show Source
object
-
analysisStatus: string
Event analysis status to be updated for the event.
-
eventStatus: string
Event status to be updated for the event.
-
id: string
Event document id for which update operation is to be performed.
-
ownerName: string
Owner name to be updated for the event.
Examples
Back to Top
Response
Supported Media Types
- application/json
200 Response
Events updated successfully
Root Schema : BulkOperationResult
Type:
Show Source
object
-
errors: array
errors
Error records to store the information of the failed operations on the entities.
-
hasErrors: boolean
Flag to indicate if there are any errors.
Nested Schema : errors
Type:
array
Error records to store the information of the failed operations on the entities.
Show Source
Nested Schema : ErrorRecord
Type:
Show Source
object
-
errorMessage: string
Error message indicating the reason for the failure.
-
id: string
Document id of the entity for which the operation failed.
Examples
400 Response
The request isn't valid
401 Response
The request is unauthorized
403 Response
The request is forbidden
404 Response
The requested resource not found
500 Response
An Internal Server Error has occurred