Reviews

Review approval flow run

POST/organizations/{organizationId}/approvals/{approvalId}/runs/{approvalRunId}/reviews
Authorization
Path parameters
organizationId*string

The organization ID

approvalId*string (uuid)
approvalRunId*string (uuid)
Body
result*enum
approvedrejectedcanceled
commentstring
Response

OK

Request
const response = await fetch('/organizations/{organizationId}/approvals/{approvalId}/runs/{approvalRunId}/reviews', {
    method: 'POST',
    headers: {
      "Authorization": "Bearer jwt",
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "result": "approved"
    }),
});
const data = await response.json();
Response
{
  "code": "text",
  "message": "text"
}

Last updated