curl --request POST \
--url https://api.example.com/v1/projects/{project}/issues/{issue}:reject \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"comment": "<string>"
}
'{
"approval": {
"approvalTemplate": {
"flow": {
"roles": [
"<string>"
]
},
"title": "<string>",
"description": "<string>"
},
"approvers": [
{
"status": "STATUS_UNSPECIFIED",
"principalId": 123
}
],
"approvalFindingDone": true,
"approvalFindingError": "<string>"
},
"grantRequest": {
"role": "<string>",
"user": "<string>",
"condition": {
"id": "<string>",
"constExpr": {
"nullValue": "NULL_VALUE",
"boolValue": true,
"int64Value": "<string>",
"uint64Value": "<string>",
"doubleValue": 123,
"stringValue": "<string>",
"bytesValue": "<string>",
"durationValue": "<string>",
"timestampValue": "2023-11-07T05:31:56Z"
},
"identExpr": {
"name": "<string>"
},
"selectExpr": {
"operand": "<unknown>",
"field": "<string>",
"testOnly": true
},
"callExpr": {
"target": "<unknown>",
"function": "<string>",
"args": "<array>"
},
"listExpr": {
"elements": "<array>",
"optionalIndices": [
123
]
},
"structExpr": {
"messageName": "<string>",
"entries": [
{
"id": "<string>",
"fieldKey": "<string>",
"mapKey": "<unknown>",
"value": "<unknown>",
"optionalEntry": true
}
]
},
"comprehensionExpr": {
"iterVar": "<string>",
"iterVar2": "<string>",
"iterRange": "<unknown>",
"accuVar": "<string>",
"accuInit": "<unknown>",
"loopCondition": "<unknown>",
"loopStep": "<unknown>",
"result": "<unknown>"
}
},
"expiration": "<string>"
},
"labels": [
"<string>"
],
"riskLevel": "RISK_LEVEL_UNSPECIFIED"
}Rejects an issue. Access determined by approval flow configuration - caller must be a designated approver for the current approval step. Permissions required: None (determined by approval flow)
curl --request POST \
--url https://api.example.com/v1/projects/{project}/issues/{issue}:reject \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"comment": "<string>"
}
'{
"approval": {
"approvalTemplate": {
"flow": {
"roles": [
"<string>"
]
},
"title": "<string>",
"description": "<string>"
},
"approvers": [
{
"status": "STATUS_UNSPECIFIED",
"principalId": 123
}
],
"approvalFindingDone": true,
"approvalFindingError": "<string>"
},
"grantRequest": {
"role": "<string>",
"user": "<string>",
"condition": {
"id": "<string>",
"constExpr": {
"nullValue": "NULL_VALUE",
"boolValue": true,
"int64Value": "<string>",
"uint64Value": "<string>",
"doubleValue": 123,
"stringValue": "<string>",
"bytesValue": "<string>",
"durationValue": "<string>",
"timestampValue": "2023-11-07T05:31:56Z"
},
"identExpr": {
"name": "<string>"
},
"selectExpr": {
"operand": "<unknown>",
"field": "<string>",
"testOnly": true
},
"callExpr": {
"target": "<unknown>",
"function": "<string>",
"args": "<array>"
},
"listExpr": {
"elements": "<array>",
"optionalIndices": [
123
]
},
"structExpr": {
"messageName": "<string>",
"entries": [
{
"id": "<string>",
"fieldKey": "<string>",
"mapKey": "<unknown>",
"value": "<unknown>",
"optionalEntry": true
}
]
},
"comprehensionExpr": {
"iterVar": "<string>",
"iterVar2": "<string>",
"iterRange": "<unknown>",
"accuVar": "<string>",
"accuInit": "<unknown>",
"loopCondition": "<unknown>",
"loopStep": "<unknown>",
"result": "<unknown>"
}
},
"expiration": "<string>"
},
"labels": [
"<string>"
],
"riskLevel": "RISK_LEVEL_UNSPECIFIED"
}OK
Issue is the metadata for issues that track database operations and access requests.
Approval information for the issue workflow.
Show child attributes
Access grant request details if this is a grant request issue.
Show child attributes
Labels attached to categorize and filter the issue.
Risk level for the issue, calculated from statement types.
RISK_LEVEL_UNSPECIFIED, LOW, MODERATE, HIGH Was this page helpful?