Method: alerts.undelete

Restores, or "undeletes", an alert that was marked for deletion within the past 30 days. Attempting to undelete an alert which was marked for deletion over 30 days ago (which has been removed from the Alert Center database) or a nonexistent alert returns a NOT_FOUND error. Attempting to undelete an alert which has not been marked for deletion has no effect.

HTTP request


The URL uses gRPC Transcoding syntax.

Path parameters



Required. The identifier of the alert to undelete.

Request body

The request body contains data with the following structure:

JSON representation
  "customerId": string


Optional. The unique identifier of the Google Workspace organization account of the customer the alert is associated with. Inferred from the caller identity if not provided.

Response body

If successful, the response body contains an instance of Alert.

Authorization Scopes

Requires the following OAuth scope: