Skip to content

chainabit approvals reject ​

Published (2.2.0) ​

This command is not included in Published (2.2.0). It is available in Development (2.2.0).

Development (2.2.0) ​

Reject without executing

Synopsis ​

text
chainabit approvals reject <id> [options]

Arguments ​

ArgumentDescriptionDefault
<id>Required.—

Options ​

OptionDescriptionDefault
--reason <reason>Reason for rejection—
--yesConfirm this change—

Inherited options ​

OptionDescriptionDefault
--workspace <id>Workspace ID—

Options shared by every command are described in Global options and shared behavior.

Behavior ​

Rejects one pending approval without carrying out the action. With --reason, the reason is sent along with the rejection.

The command asks you to confirm before it rejects. In a script, or with --json, pass --yes; without it, a non-interactive run is refused with exit code 2 and nothing is rejected. If you decline the prompt, nothing changes.

The workspace comes from --workspace, the environment or your local selection; with none of them the command stops and asks you to select a workspace.

An approval that was already approved or rejected cannot be decided again; the command exits with a non-zero code and the error code approval_already_resolved.

Output ​

A receipt with the resolution. With --json the output contains resolved.

Authentication and permissions ​

You must be signed in. Approvals are scoped to the selected workspace, and the service checks your membership.

Examples ​

bash
chainabit approvals reject 00000000-0000-4000-8000-000000000001
chainabit approvals reject 00000000-0000-4000-8000-000000000001 --reason "Not needed" --yes

Built with purpose. chainabit.com