curl --request PATCH \
--url https://api.example.com/v1/reviewConfigs/{reviewConfig} \
--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>"
]
}Updates a SQL review configuration. Permissions required: bb.reviewConfigs.update When allow_missing=true, also requires: bb.reviewConfigs.create
curl --request PATCH \
--url https://api.example.com/v1/reviewConfigs/{reviewConfig} \
--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>"
]
}The reviewConfig id.
The list of fields to update.
If set to true, and the config is not found, a new config will be created.
In this situation, update_mask is ignored.
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?