POST
/
v1
/
projects
/
{project}
/
issues
/
{issue}
:request
{
  "approval": {
    "approvalTemplates": [
      {
        "flow": {
          "steps": [
            {
              "type": "TYPE_UNSPECIFIED",
              "nodes": [
                {
                  "type": "TYPE_UNSPECIFIED",
                  "role": "<string>"
                }
              ]
            }
          ]
        },
        "title": "<string>",
        "description": "<string>"
      }
    ],
    "approvers": [
      {
        "status": "STATUS_UNSPECIFIED",
        "principalId": 123
      }
    ],
    "approvalFindingDone": true,
    "approvalFindingError": "<string>",
    "riskLevel": "RISK_LEVEL_UNSPECIFIED"
  },
  "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": {},
        "field": "<string>",
        "testOnly": true
      },
      "callExpr": {
        "target": {},
        "function": "<string>",
        "args": [
          {}
        ]
      },
      "listExpr": {
        "elements": [
          {}
        ],
        "optionalIndices": [
          123
        ]
      },
      "structExpr": {
        "messageName": "<string>",
        "entries": [
          {
            "id": "<string>",
            "fieldKey": "<string>",
            "mapKey": {},
            "value": {},
            "optionalEntry": true
          }
        ]
      },
      "comprehensionExpr": {
        "iterVar": "<string>",
        "iterRange": {},
        "accuVar": "<string>",
        "accuInit": {},
        "loopCondition": {},
        "loopStep": {},
        "result": {}
      }
    },
    "expiration": "<string>"
  },
  "labels": [
    "<string>"
  ]
}

Path Parameters

project
string
required

The project id.

issue
string
required

The issue id.

Body

application/json

Response

200
application/json

OK

The response is of type object.