Method: projects.locations.insightTypes.insights.markAccepted

Marks the Insight State as Accepted. Users can use this method to indicate to the Recommender API that they have applied some action based on the insight. This stops the insight content from being updated.

insights.markAccepted can be applied to insights in ACTIVE state. Requires the recommender.*.update IAM permission for the specified insight.

HTTP request


The URL uses gRPC Transcoding syntax.

Path parameters



Required. Name of the insight.

Request body

The request body contains data with the following structure:

JSON representation
  "stateMetadata": {
    string: string,
  "etag": string

map (key: string, value: string)

Optional. State properties user wish to include with this state. Full replace of the current stateMetadata.

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.



Required. Fingerprint of the Insight. Provides optimistic locking.

Response body

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

Authorization scopes

Requires the following OAuth scope:


For more information, see the Authentication Overview.

IAM Permissions

Requires one of the following IAM permissions on the name resource, depending on the resource type:

  • recommender.commitmentUtilizationInsights.update
  • recommender.computeAddressIdleResourceInsights.update
  • recommender.computeDiskIdleResourceInsights.update
  • recommender.computeFirewallInsights.update
  • recommender.computeImageIdleResourceInsights.update
  • recommender.iamPolicyInsights.update
  • recommender.iamServiceAccountInsights.update
  • recommender.resourcemanagerProjectUtilizationInsights.update

For more information, see the IAM documentation.