PgBeam Docs
Approvals

rejectApprovalRequest

Reject a held statement

Rejects a pending approval request, denying the held statement.

Usage

const result = await api.approvals.rejectApprovalRequest({
    pathParams: { project_id: "prj_xxx", approval_id: "apr_xxx" },
    body: {
      ,
    },
  });

Parameters

ParameterTypeRequiredDescription
pathParams.project_idstringYesUnique project identifier (prefixed, e.g. prj_xxx).
pathParams.approval_idstringYesUnique approval request identifier (prefixed, e.g. apr_xxx).
body.reasonstringNoHuman-readable note explaining the decision.

Response

Promise<ApprovalRequest> — the updated approval request.

Example

import { PgBeamClient } from "pgbeam";

const client = new PgBeamClient({
  token: "pbk_...",
  baseUrl: "https://api.pgbeam.com",
});

const result = await client.api.approvals.rejectApprovalRequest({
  pathParams: { project_id: "prj_xxx", approval_id: "apr_xxx" },
  body: {
      ,
    },
});

Errors

StatusDescription
400Invalid request parameters.
401Missing or invalid authentication.
403Operation not allowed by current plan limits.
404Resource not found.
409Resource already exists or conflicts with current state.

On this page