curl --request POST \
--url https://api.example.com/v1/reviewConfigs \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"enabled": true,
"rules": [
{
"type": "<string>",
"level": "LEVEL_UNSPECIFIED",
"payload": "<string>",
"engine": "ENGINE_UNSPECIFIED",
"comment": "<string>"
}
],
"resources": [
"<string>"
]
}
'{
"name": "<string>",
"title": "<string>",
"enabled": true,
"rules": [
{
"type": "<string>",
"level": "LEVEL_UNSPECIFIED",
"payload": "<string>",
"engine": "ENGINE_UNSPECIFIED",
"comment": "<string>"
}
],
"resources": [
"<string>"
]
}Creates a new SQL review configuration. Permissions required: bb.reviewConfigs.create
curl --request POST \
--url https://api.example.com/v1/reviewConfigs \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"enabled": true,
"rules": [
{
"type": "<string>",
"level": "LEVEL_UNSPECIFIED",
"payload": "<string>",
"engine": "ENGINE_UNSPECIFIED",
"comment": "<string>"
}
],
"resources": [
"<string>"
]
}
'{
"name": "<string>",
"title": "<string>",
"enabled": true,
"rules": [
{
"type": "<string>",
"level": "LEVEL_UNSPECIFIED",
"payload": "<string>",
"engine": "ENGINE_UNSPECIFIED",
"comment": "<string>"
}
],
"resources": [
"<string>"
]
}OK
The name of the SQL review config. Format: reviewConfigs/{reviewConfig}
The title of the review configuration.
Whether the review configuration is enabled.
The SQL review rules to enforce.
Show child attributes
Resources using the config. Format: {resource}/{resource id}, e.g., environments/test.
Was this page helpful?