BatchUpdateFindingsV2
Used by customers to update information about their investigation into a finding.
Requested by delegated administrator accounts or member accounts.
Delegated administrator accounts can update findings for their account and their member accounts.
Member accounts can update findings for their account. BatchUpdateFindings
and BatchUpdateFindingV2
both use securityhub:BatchUpdateFindings
in the Action
element of an IAM policy statement.
You must have permission to perform the securityhub:BatchUpdateFindings
action.
Updates from BatchUpdateFindingsV2
don't affect the value of finding_info.modified_time
, finding_info.modified_time_dt
, time
, time_dt for a finding
. This API is in private preview and subject to change.
Request Syntax
PATCH /findingsv2/batchupdatev2 HTTP/1.1
Content-type: application/json
{
"Comment": "string
",
"FindingIdentifiers": [
{
"CloudAccountUid": "string
",
"FindingInfoUid": "string
",
"MetadataProductUid": "string
"
}
],
"MetadataUids": [ "string
" ],
"SeverityId": number
,
"StatusId": number
}
URI Request Parameters
The request does not use any URI parameters.
Request Body
The request accepts the following data in JSON format.
- Comment
-
The updated value for a user provided comment about the finding. Minimum character length 1. Maximum character length 512.
Type: String
Pattern:
.*\S.*
Required: No
- FindingIdentifiers
-
Provides information to identify a specific V2 finding.
Type: Array of OcsfFindingIdentifier objects
Array Members: Minimum number of 0 items. Maximum number of 100 items.
Required: No
- MetadataUids
-
The list of finding
metadata.uid
to indicate findings to update. Findingmetadata.uid
is a globally unique identifier associated with the finding. Customers cannot useMetadataUids
together withFindingIdentifiers
.Type: Array of strings
Array Members: Minimum number of 0 items. Maximum number of 100 items.
Pattern:
.*\S.*
Required: No
- SeverityId
-
The updated value for the normalized severity identifier. The severity ID is an integer with the allowed enum values [0, 1, 2, 3, 4, 5, 99]. When customer provides the updated severity ID, the string sibling severity will automatically be updated in the finding.
Type: Integer
Required: No
- StatusId
-
The updated value for the normalized status identifier. The status ID is an integer with the allowed enum values [0, 1, 2, 3, 4, 5, 6, 99]. When customer provides the updated status ID, the string sibling status will automatically be updated in the finding.
Type: Integer
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"ProcessedFindings": [
{
"FindingIdentifier": {
"CloudAccountUid": "string",
"FindingInfoUid": "string",
"MetadataProductUid": "string"
},
"MetadataUid": "string"
}
],
"UnprocessedFindings": [
{
"ErrorCode": "string",
"ErrorMessage": "string",
"FindingIdentifier": {
"CloudAccountUid": "string",
"FindingInfoUid": "string",
"MetadataProductUid": "string"
},
"MetadataUid": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
- ProcessedFindings
-
The list of findings that were updated successfully.
Type: Array of BatchUpdateFindingsV2ProcessedFinding objects
- UnprocessedFindings
-
The list of V2 findings that were not updated.
Type: Array of BatchUpdateFindingsV2UnprocessedFinding objects
Errors
For information about the errors that are common to all actions, see Common Errors.
- AccessDeniedException
-
You don't have permission to perform the action specified in the request.
HTTP Status Code: 403
- ConflictException
-
The request causes conflict with the current state of the service resource.
HTTP Status Code: 409
- InternalServerException
-
The request has failed due to an internal failure of the service.
HTTP Status Code: 500
- ThrottlingException
-
The limit on the number of requests per second was exceeded.
HTTP Status Code: 429
- ValidationException
-
The request has failed validation because it's missing required fields or has invalid inputs.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific Amazon SDKs, see the following: