Skip to main content
POST
/
v1
/
reviewConfigs
cURL
curl --request POST \
  --url https://api.example.com/v1/reviewConfigs \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "<string>",
  "enabled": true,
  "rules": [
    {
      "type": "TYPE_UNSPECIFIED",
      "level": "LEVEL_UNSPECIFIED",
      "namingPayload": {
        "maxLength": 123,
        "format": "<string>"
      },
      "numberPayload": {
        "number": 123
      },
      "stringArrayPayload": {
        "list": [
          "<string>"
        ]
      },
      "commentConventionPayload": {
        "required": true,
        "maxLength": 123
      },
      "stringPayload": {
        "value": "<string>"
      },
      "namingCasePayload": {
        "upper": true
      },
      "engine": "ENGINE_UNSPECIFIED"
    }
  ],
  "resources": [
    "<string>"
  ]
}
'
{
  "name": "<string>",
  "title": "<string>",
  "enabled": true,
  "rules": [
    {
      "type": "TYPE_UNSPECIFIED",
      "level": "LEVEL_UNSPECIFIED",
      "namingPayload": {
        "maxLength": 123,
        "format": "<string>"
      },
      "numberPayload": {
        "number": 123
      },
      "stringArrayPayload": {
        "list": [
          "<string>"
        ]
      },
      "commentConventionPayload": {
        "required": true,
        "maxLength": 123
      },
      "stringPayload": {
        "value": "<string>"
      },
      "namingCasePayload": {
        "upper": true
      },
      "engine": "ENGINE_UNSPECIFIED"
    }
  ],
  "resources": [
    "<string>"
  ]
}

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.