chainabit chain grant put
Replace the grant with an explicit JSON document
Synopsis
chainabit chain grant put <id> --input <json> [options]Arguments
| Argument | Description | Default |
|---|---|---|
<id> | Required. | — |
Options
| Option | Description | Default |
|---|---|---|
--input <json> | Complete grant JSON; empty allowlists permit nothing. Required. | — |
--yes | Skip confirmation prompt | — |
Options shared by every command are described in Global options and shared behavior.
Behavior
Replaces the whole grant rather than merging selected fields. Agent, tool and connection allowlists, sensitivity, budget and approval behavior define the authority. Empty allowlists allow nothing. Human mode asks for confirmation; JSON skips it.
Validation
--input must be a JSON object with allowedAgentInstanceIds, allowedToolKeys, allowedConnectionIds, sensitivityPolicy, budget, approvers and approvalTimeout. Sensitivity values are allow/ask/deny; approvers.mode is granter/workspace_admins; approvalTimeout.mode is pause/fail/skip. Agent/connection IDs are UUIDs. Budget limits are non-negative integers when present; parallel-step and concurrent-run limits are at least 1. expiresAt, when supplied, is an ISO timestamp. The example intentionally delegates no authority.
Examples
chainabit chain grant put 00000000-0000-4000-8000-000000000001 --input '{"allowedAgentInstanceIds":[],"allowedToolKeys":[],"allowedConnectionIds":[],"sensitivityPolicy":{"read":"deny","write":"deny","destructive":"deny","external":"deny"},"budget":{},"approvers":{"mode":"granter"},"approvalTimeout":{"mode":"pause"}}'