chainabit approvals approve
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)
Approve the action (may spend wallet credits)
Synopsis
chainabit approvals approve <id> [options]Arguments
| Argument | Description | Default |
|---|---|---|
<id> | Required. | — |
Options
| Option | Description | Default |
|---|---|---|
--yes | Confirm this change | — |
Inherited options
| Option | Description | Default |
|---|---|---|
--workspace <id> | Workspace ID | — |
Options shared by every command are described in Global options and shared behavior.
Behavior
Approves one pending approval, so the action that the agent paused is carried out. Approving starts a fresh run that resumes the agent's work, and that run can spend credits.
The command asks you to confirm before it approves. In a script, or with --json, pass --yes; without it, a non-interactive run is refused with exit code 2 and nothing is approved. If you decline the prompt, nothing changes. The acknowledgement is not completed execution: the resumed run continues afterwards.
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, the status and, when a run was started, the ID of the resumed run. With --json the output contains resolved and status, and resumeRunId when a run was started.
Authentication and permissions
You must be signed in. Approvals are scoped to the selected workspace, and the service checks your membership.
Examples
chainabit approvals approve 00000000-0000-4000-8000-000000000001
chainabit approvals approve 00000000-0000-4000-8000-000000000001 --yes