campaign-budgets:create

Fund a campaign compute budget that participants on a root's graph draw from through their own grants. It needs `hard_cap_cents` of credit headroom: your balance minus what your other active campaign budgets still have uncommitted. Without it the call fails with `Campaign budget commitment needs N cents, but only M cents are available.` Returns `budget` (including `compute_budget_id`). Only the campaign's owner or an admin may create one.

Reference for flywheel campaign-budgets:create.

Command Group

Approvals & Budgets Commands

Summary

Fund a campaign compute budget that participants on a root's graph draw from through their own grants. It needs hard_cap_cents of credit headroom: your balance minus what your other active campaign budgets still have uncommitted. Without it the call fails with Campaign budget commitment needs N cents, but only M cents are available. Returns budget (including compute_budget_id). Only the campaign's owner or an admin may create one.

Effect

changes data

Usage

flywheel campaign-budgets:create <FLAGS>

Required flags

FlagValueDefaultChoicesDescription
--root_node_idstringUUID of a root node (no parents) from roots in graph:get. Tag commands refuse a non-root (400); budget commands use a descendant's root.
--hard_cap_centsintegerMost the whole budget may spend, in cents; above 0. Counted against your credits when you create it.

Optional flags

FlagValueDefaultChoicesDescription
--per_user_hard_cap_centsintegerMost any one participant may spend from this budget, in cents; above 0 and at most --hard_cap_cents. Omitted: no per-person limit.
--namestringLabel for the budget; surrounding whitespace is dropped and a blank one is ignored.
--descriptionstringLonger note about the budget; surrounding whitespace is dropped and a blank one is ignored.
--formatFORMATjson, tsv, csv, tableOutput format for command results.
--envPROFILESelect a CLI profile; unconfigured default requires FLYWHEEL_BASE_URL.
--outPATHWrite output to a file path, or use - for stdout.
--openOpen browser-bound URLs when supported.
--no-retryDisable transient-error retries.
--retry-maxNMaximum transient-error retry attempts.
--waitBlock on async operations until a terminal state is reached.
--wait-timeoutSECONDS600Seconds to wait for --wait before timing out. Defaults to 600.
--allow-selfAllow mutating the currently active credential.
--timeoutSECONDSSet the per-request timeout budget in seconds.
--idempotency-keyKEYReuse an Idempotency-Key so ambiguous write failures can be retried with the same key.
--forceForce safety-gated operations where supported.
--yesConfirm forced compute:release-all --force. Other runtime commands do not read --yes.
--debugPrint structured request debugging with secrets masked.
--verbosePrint verbose progress for long-running operations.
-h, --helpShow this help.

Examples

Create a named budget with a per-participant limit.

flywheel campaign-budgets:create --root_node_id r_root --hard_cap_cents 10000 --per_user_hard_cap_cents 2500 --name "Spring cohort"

Output

Default format: json.

FieldType
budgetobject