Skip to main content
PATCH
/
v1
/
reviewConfigs
/
{reviewConfig}
{
  "name": "<string>",
  "title": "<string>",
  "enabled": true,
  "rules": [
    {
      "type": "<string>",
      "level": "LEVEL_UNSPECIFIED",
      "payload": "<string>",
      "engine": "ENGINE_UNSPECIFIED",
      "comment": "<string>"
    }
  ],
  "resources": [
    "<string>"
  ]
}

Path Parameters

reviewConfig
string
required

The reviewConfig id.

Query Parameters

updateMask
string<field-mask>

The list of fields to update.

allowMissing
boolean

If set to true, and the config is not found, a new config will be created. In this situation, update_mask is ignored.

Body

application/json
title
string

The title of the review configuration.

enabled
boolean

Whether the review configuration is enabled.

rules
object[]

The SQL review rules to enforce.

resources
string[]

Resources using the config. Format: {resource}/{resource id}, e.g., environments/test.

Response

OK

name
string

The name of the SQL review config. Format: reviewConfigs/{reviewConfig}

title
string

The title of the review configuration.

enabled
boolean

Whether the review configuration is enabled.

rules
object[]

The SQL review rules to enforce.

resources
string[]

Resources using the config. Format: {resource}/{resource id}, e.g., environments/test.