Skip to content

put_api_projects_id_

PUT
/api/projects/{id}
curl --request PUT \
--url https://example.com/api/projects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Content-Type: application/json' \
--cookie supacloud_session=<supacloud_session> \
--data '{ "agent_commit_co_author": true, "artifact_comment_followup": "auto", "automations": [ { "agent_profile_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "autonomy_override": 1, "candidate_profile_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "close_source_issue": true, "completion_action": "close", "denied_tools": [ "example" ], "enabled": true, "environment_scope": "all", "kind": "pr_review", "pipeline_config": "example", "post_completion_comment": true, "review_enabled": true, "severity_min": "critical", "source_filter": "example", "trigger": "webhook", "webhook_secret": "example", "workflow_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" } ], "autonomy_level": 1, "autonomy_overrides": "example", "backlog_classifier": "llm", "backlog_daily_budget_usd": 1, "backlog_max_concurrent": 1, "backlog_max_waiting": 1, "backlog_merge_policy": "pr_only", "backlog_mode_enabled": true, "backlog_required_reviewers": 1, "closeout_config": { "memory": true, "project_docs": { "condition": "if_touched", "enabled": true, "globs": [ "example" ] }, "user_docs": { "condition": "if_touched", "enabled": true, "globs": [ "example" ], "langs": [ "example" ] }, "wiki": { "condition": "if_touched", "enabled": true } }, "daily_budget_usd": 1, "denied_tools": [ "example" ], "git_credential_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "git_default_branch": "example", "git_provider": "example", "git_repo_url": "example", "git_repo_url_edit_intent": "keep_private", "issue_close_policy": "on_completion", "issue_tracker": "linear", "issue_tracker_autodev_enabled": true, "issue_tracker_credential_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "issue_tracker_key": "example", "issue_tracker_state_map": "example", "issue_tracker_webhook_secret": "example", "memory_governance_policy": { "personal": { "auto_publish": true, "require_review": true, "retention_days": 1 }, "project": { "auto_publish": true, "require_review": true, "retention_days": 1 }, "workspace": { "auto_publish": true, "require_review": true, "retention_days": 1 } }, "monthly_budget_usd": 1, "name": "example", "notify_config": { "human_action_channel": "example", "project_channel": "example" }, "placement_policy": { "on_no_runner": "queue", "queue_timeout_minutes": 1 }, "required_worker_group_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ] }'

Update a project and return its persisted configuration in the selected workspace.

id
required
string format: uuid

Project id

Media typeapplication/json
object
agent_commit_co_author

#1546 G1 (mig 679) — the project tier of the agent-commit co-author setting (projects.agent_commit_co_author): whether an agent commit carries the launching human’s Co-authored-by line. DOUBLE-Option: absent leaves it untouched; null inherits the workspace tier; true | false sets it. A person’s own opt-out always wins. Owner/admin; audited project.agent_commit_co_author.update.

boolean | null
artifact_comment_followup
One of:

#1527 S4 (ADR 0085) — the project tier of the artifact comment follow-up policy (projects.artifact_comment_followup, mig 673). DOUBLE-Option: absent leaves it untouched; null inherits the workspace tier; auto | approval sets it (anything else is a 400). Owner/admin; audited project.artifact_comment_followup.update.

string
Allowed values: auto approval
automations

ADR 0045 Stage 1b — the consolidated Automation section’s per-kind rows, atomically admitted into the current arm store with durable completion receipts.

Array<object> | null

What a save supplies for one automation. webhook_secret = None keeps any stored secret on update (the persistence COALESCE) — a config edit need not re-type it. autonomy_override is the REQUESTED level; the service clamps it to the workspace ceiling before persist.

object
agent_profile_id
string | null format: uuid
autonomy_override
integer | null format: int32
<= 255
candidate_profile_ids

#534 WS-2 — the multi-agent work-lane candidate pool (backlog/simple lane). Some(None) clears; Some(Some([])) = the All wildcard (every keyed workspace profile, dynamic); Some(Some([ids])) = an explicit set; an omitted key (outer None) keeps the stored pool.

Array<string> | null
close_source_issue
boolean | null
completion_action
One of:

#538 L12 — the post-completion issue action (close | comment | nothing). Legacy: the FE now sends the two booleans below; kept for back-compat + dual-write.

string
Allowed values: close comment nothing
denied_tools
Array<string> | null
enabled
boolean | null
environment_scope
One of:
string
Allowed values: all production staging development
kind
required
string
Allowed values: pr_review intake backlog tracker
pipeline_config

#538 feinschliff — the dev-pipeline knobs JSONB (return_to_sender, convergence_level, max_rounds, max_cost_usd, per-stage overrides; mig 231).

post_completion_comment

#708 C1 — the two ADDITIVE completion booleans (post the closing comment × close/ transition the source issue). An omitted key keeps the stored value; when set, the write derives + dual-writes completion_action (lossy for “silent close”).

boolean | null
review_enabled

#538 feinschliff — the Review toggle (the gated audit tail).

boolean | null
severity_min
One of:
string
Allowed values: critical high medium low trivial
source_filter
trigger
One of:
string
Allowed values: webhook schedule manual
webhook_secret

Write-only HMAC secret; an omitted/empty value keeps the stored secret (the persistence COALESCE), a non-empty value overwrites it.

string | null
workflow_id

#794 Stretch — selecting an existing workflow (including a Marketplace install) binds it directly to this arm. null restores the platform managed template only when the arm was previously selected; omitted keeps the current binding.

string | null format: uuid
autonomy_level

ADR 0045 Stage 4 — per-project autonomy override base level. DOUBLE-Option: absent leaves it untouched; null clears it (inherit the workspace); a value sets it (clamped to the plan ceiling). The DB CHECK bounds 0..=100.

integer | null format: int32
<= 100
autonomy_overrides

ADR 0045 Stage 4 — the project’s Advanced override vector. None leaves it untouched; a value replaces it. An omitted autonomy_level retains the current level.

backlog_classifier
One of:

#626 G1 — backlog classifier variant ('llm' | 'rules', mig 167 CHECK). None leaves the column untouched.

string
Allowed values: llm rules
backlog_daily_budget_usd

#708 B4 — per-project daily backlog $-budget. DOUBLE-Option: absent untouched; null clears to no-cap; a value sets it. Owner/admin.

number | null format: double
backlog_max_concurrent

#708 B4 — per-project backlog concurrency cap. DOUBLE-Option: absent untouched; null clears (inherit the workspace ceiling); a value sets it. Owner/admin.

integer | null format: int32
>= 1 <= 32767
backlog_max_waiting

AUD-INT-011 — per-project cap on backlog runs parked on a human gate. DOUBLE-Option: absent untouched; null clears (twice the concurrency cap); a value sets it.

integer | null format: int32
>= 1 <= 32767
backlog_merge_policy
One of:

ADR 0045 Stage 1b — backlog merge policy ('pr_only' default). None leaves it untouched.

string
Allowed values: pr_only auto_on_green full_auto
backlog_mode_enabled

ADR 0045 Stage 1b — autonomous backlog-dispatch mode (XOR PR-flow auto-developer; the UI enforces the exclusivity, the server does not). None leaves the column untouched. #1557 — the backlog automation arm decides and mirrors its enabled onto this flag; a value that contradicts the arm state the save leaves behind is refused (400).

boolean | null
backlog_required_reviewers

#708 B4 — required distinct-human reviewer bar (mig 167). None untouched. Owner/admin.

integer | null format: int32
<= 32767
closeout_config
One of:

#712 — the project-tier SPARSE standard-closeout override (mig 283). DOUBLE-Option: absent leaves it untouched; null RESETS it to inherit the workspace default (SQL NULL); a value stores the sparse override (shape-validated on write). Owner/admin safety rail.

object
memory

Gates the Tier-0 closeout MEMORY proposal. None inherits the next tier.

boolean | null
project_docs
One of:

A sparse project-docs step override.

object
condition
One of:
string
Allowed values: if_touched always
enabled
boolean | null
globs
Array<string> | null
user_docs
One of:

A sparse user-docs step override.

object
condition
One of:
string
Allowed values: if_touched always
enabled
boolean | null
globs
Array<string> | null
langs
Array<string> | null
wiki
One of:

A sparse wiki step override.

object
condition
One of:
string
Allowed values: if_touched always
enabled
boolean | null
daily_budget_usd

#708 M5 — the per-project TOTAL daily $-budget (mig 296): an AND-gate UNDER the workspace cap that binds EVERY lane (manual, backlog AND pr_review). Double-Option: absent = untouched; null = clear; a value = set. Owner/admin safety rail.

number | null format: double
denied_tools

ADR 0045 Stage 1b — per-project blast-radius tool denylist (mig 210). None leaves it untouched.

Array<string> | null
git_credential_id
string | null format: uuid
git_default_branch
string | null
git_provider
string | null
git_repo_url
string | null
git_repo_url_edit_intent

Public read/edit/save preserves private connection bytes unless replacement is explicit.

string
Allowed values: keep_private replace
issue_close_policy
One of:

SC-22 — the project-level issue close policy. None leaves it untouched. Refused with 422 when the saved project would run at autonomy >= 75 with an auto-merge policy and on_completion. Owner/admin safety rail.

string
Allowed values: on_completion merged_pr_only
issue_tracker
One of:
string
Allowed values: linear notion
issue_tracker_autodev_enabled
boolean | null
issue_tracker_credential_id
string | null format: uuid
issue_tracker_key
string | null
issue_tracker_state_map
object | null
issue_tracker_webhook_secret
string | null
memory_governance_policy
One of:

#708 W13 — the project-tier SPARSE memory-governance override (mig 289). DOUBLE-Option: absent leaves it untouched; null RESETS it to inherit the workspace policy (SQL NULL); a value stores the sparse override (shape-validated on write). Owner/admin safety rail.

object
personal
One of:

The governance rule for ONE memory scope: whether new memories of that scope skip the review queue (auto_publish), whether they must be human-reviewed (require_review), and how long they are retained before the decay sweep may archive them (retention_days, 0 = keep forever).

auto_publish and require_review are intentionally NOT collapsed into one flag: the conservative default is “review required, not auto-published”, and a future “auto-published BUT still logged for review” mode keeps both axes meaningful. The validation below rejects the contradictory auto_publish && require_review combo.

object
auto_publish

New memories of this scope skip the review queue and land live immediately.

boolean
require_review

New memories of this scope must be human-reviewed before they go live.

boolean
retention_days

Days a memory of this scope is retained before the decay sweep may archive it; 0 keeps it forever. Defaults per scope: shared scopes (workspace/project) start at [DEFAULT_SHARED_RETENTION_DAYS] (#1228), personal at 0.

integer format: int32
<= 10000
not matching
auto_publish
required
require_review
required
project
One of:

The governance rule for ONE memory scope: whether new memories of that scope skip the review queue (auto_publish), whether they must be human-reviewed (require_review), and how long they are retained before the decay sweep may archive them (retention_days, 0 = keep forever).

auto_publish and require_review are intentionally NOT collapsed into one flag: the conservative default is “review required, not auto-published”, and a future “auto-published BUT still logged for review” mode keeps both axes meaningful. The validation below rejects the contradictory auto_publish && require_review combo.

object
auto_publish

New memories of this scope skip the review queue and land live immediately.

boolean
require_review

New memories of this scope must be human-reviewed before they go live.

boolean
retention_days

Days a memory of this scope is retained before the decay sweep may archive it; 0 keeps it forever. Defaults per scope: shared scopes (workspace/project) start at [DEFAULT_SHARED_RETENTION_DAYS] (#1228), personal at 0.

integer format: int32
<= 10000
not matching
auto_publish
required
require_review
required
workspace
One of:

The governance rule for ONE memory scope: whether new memories of that scope skip the review queue (auto_publish), whether they must be human-reviewed (require_review), and how long they are retained before the decay sweep may archive them (retention_days, 0 = keep forever).

auto_publish and require_review are intentionally NOT collapsed into one flag: the conservative default is “review required, not auto-published”, and a future “auto-published BUT still logged for review” mode keeps both axes meaningful. The validation below rejects the contradictory auto_publish && require_review combo.

object
auto_publish

New memories of this scope skip the review queue and land live immediately.

boolean
require_review

New memories of this scope must be human-reviewed before they go live.

boolean
retention_days

Days a memory of this scope is retained before the decay sweep may archive it; 0 keeps it forever. Defaults per scope: shared scopes (workspace/project) start at [DEFAULT_SHARED_RETENTION_DAYS] (#1228), personal at 0.

integer format: int32
<= 10000
not matching
auto_publish
required
require_review
required
monthly_budget_usd

#708 M5 — the per-project TOTAL monthly $-budget (mig 296). Same double-Option semantics; AND-gates under the workspace cap alongside daily_budget_usd.

number | null format: double
name
string | null
notify_config
One of:

SC-21 — the project’s SPARSE notification override (projects.notify_config): where human-action notifications land (human_action_channel) and clearing the project’s report channel. DOUBLE-Option: absent leaves it untouched; null resets it to inherit; a value stores it (validated by name on write; a written project_channel id is refused — a channel is bound only through the link-code handshake). Owner/admin notification rail.

object
human_action_channel

Where a HUMAN-ACTION notification (question, approval, expiring credential) lands for this project: telegram | discord | inbox_only. Absent = every linked platform, as before. Never a mute: inbox_only still shows every pending decision in the in-app inbox.

string | null
project_channel

CLEAR-ONLY here: null removes the project’s report channel. A channel is SET only through the link-code handshake (POST .../notify-config/project-channel/link-token then /link <code> in that chat); a written channel id is refused. On the READ side (the project GET) it carries the stored {platform, external_id, consented_by, consented_at}, typed as an open map so a client parse keeps every key.

object | null
placement_policy
One of:

SC-6 — the project tier of the runner placement policy ({on_no_runner, queue_timeout_minutes}). DOUBLE-Option: absent leaves it untouched; null clears it to inherit the workspace default; a value stores it (validated on write, 400 naming the field). Owner/admin routing rail.

object
on_no_runner
One of:

SC-6 — what a task does when no runner is eligible.

string
Allowed values: queue fail local
queue_timeout_minutes

How long an unbound assignment waits before it fails with no_runner_timeout (built-in 120).

integer | null format: int32
>= 1
required_worker_group_ids

ADR 0046 RUNG 1b — the project’s worker-group OVERRIDE binding. DOUBLE-Option: absent leaves it untouched; null clears it to inherit (column NULL); a value (incl. []) sets the override. Workspace admin (a routing/safety rail).

Array<string> | null

Updated project

Media typeapplication/json
object
agent_commit_co_author
required
One of:

#1546 G1 (mig 679) — the project tier of the agent-commit co-author setting (stored: true | false | null) and what applies there. Folded in by the detail and update handlers; null on the list.

object
effective
required

Whether agent commits carry the launching human’s Co-authored-by line here (before that person’s own opt-out, which always wins).

boolean
source
required

Where effective came from: project | workspace | built_in.

string
stored
required

This tier’s own setting; null inherits the tier above.

boolean | null
artifact_comment_followup
required
One of:

#1527 S4 (ADR 0085) — the project tier of the artifact comment follow-up policy (stored: auto | approval | null) and what applies there. Folded in by the detail and update handlers; null on the list.

object
effective
required

The policy in force for member comments (auto | approval); an external comment always needs approval.

string
source
required

document | project | workspace | built_in.

string
stored

This tier’s own setting (auto | approval), None = inherited.

string | null
auto_developer_workflow_id
required

D1 — the materialized Auto Developer workflow’s id, surfaced so the project-edit UI can render an “Edit workflow” link. None until the arm’s workflow is materialized.

string | null format: uuid
autonomy_level
required

ADR 0045 Stage 4 — the project-scope autonomy level (0..=100), or null to inherit from the workspace. The project-edit form seeds the autonomy slider from it.

integer | null format: int32
autonomy_overrides
required

ADR 0045 Stage 4 — the Advanced per-axis autonomy override vector (free-form string-keyed bag, e.g. {"level": N}). Defaults to {}. The project-edit form seeds the Advanced overrides from it.

object
key
additional properties
backlog_classifier
required

Issue #532 — how items are classified: 'llm' (default — one LLM call per item, tuned by the backlog automation’s source_filter classifier config) or 'rules' (the deterministic mapping). Surfaced so the Automation section shows the editable Classifier tuning for llm and the read-only rules mapping for rules.

string
backlog_daily_budget_usd
required

#708 B4 — per-project daily backlog $-budget (null = no cap). Surfaced so the backlog-limits field can seed + round-trip its current value.

number | null format: double
backlog_max_concurrent
required

#708 B4 — per-project backlog concurrency cap (null = inherit the workspace ceiling). Surfaced so the backlog-limits field can seed + round-trip.

integer | null format: int32
backlog_max_waiting
required

AUD-INT-011 — the per-project cap on backlog runs parked on a human gate (null = twice the concurrency cap).

integer | null format: int32
backlog_merge_policy
required

ADR 0045 Stage 1b — backlog merge policy: 'pr_only' (default) | 'auto_on_green' | 'full_auto'. Surfaced so the consolidated Automation section can round-trip the selected Approval-mode.

string
backlog_mode_enabled
required

#364 / #388 — whether the project runs in autonomous backlog-dispatch mode (mutually exclusive with PR-flow auto-developer). Surfaced so the #358 board + project detail can render the “Backlog” chip.

boolean
backlog_required_reviewers
required

ADR 0045 Stage 1b — N human approvals required on the backlog in_review → done/merge step. Surfaced read-only on the project detail.

integer format: int32
closeout_config
required
One of:

#712 — the project-tier SPARSE standard-closeout override (mig 283), or null to inherit the workspace default entirely. A sparse per-step bag ({memory, project_docs, user_docs, wiki}); #708 S4 types its interior via the CloseoutConfigPatch schema (was an opaque unknown).

object
memory

Gates the Tier-0 closeout MEMORY proposal. None inherits the next tier.

boolean | null
project_docs
One of:

A sparse project-docs step override.

object
condition
One of:
string
Allowed values: if_touched always
enabled
boolean | null
globs
Array<string> | null
user_docs
One of:

A sparse user-docs step override.

object
condition
One of:
string
Allowed values: if_touched always
enabled
boolean | null
globs
Array<string> | null
langs
Array<string> | null
wiki
One of:

A sparse wiki step override.

object
condition
One of:
string
Allowed values: if_touched always
enabled
boolean | null
created_at
required
string format: date-time
daily_budget_usd
required

#708 M5 — the project-TOTAL daily/monthly $-budget caps (mig 296; every launch, not just backlog). Surfaced so the Guardrails budget inputs seed + round-trip their current value. null = no project cap.

number | null format: double
denied_tools
required

ADR 0045 Stage 1b — per-project blast-radius tool denylist (mig 210). Surfaced so the Automation section can render + round-trip the chosen Blast-radius denied tools.

Array<string>
detected_stack
required
git_credential_id
required
string | null format: uuid
git_default_branch
required
string | null
git_provider
required
string | null
git_repo_url
required
string | null
id
required
string format: uuid
image_built_at
required
string | null format: date-time
image_config
required
image_digest
required

#1468 / ADR 0086 — set when the image was built on the runner fleet; launches pin it (<image_tag>@<digest>).

string | null
image_error
required
string | null
image_size
required
integer | null format: int64
image_status
required
string | null
image_tag
required
string | null
issue_close_policy
required

SC-22 — the project-level issue close policy: 'on_completion' (default) | 'merged_pr_only' (only a pull request merged into the default branch closes an issue). Surfaced so the completion field can seed and round-trip the toggle.

string
issue_tracker
required

ADR 0029 Slice 5 — Linear/Notion issue tracker config.

string | null
issue_tracker_autodev_enabled
required

ADR 0029 Slice 7 — tracker auto-developer toggle. The webhook secret itself (the HMAC signing secret the Linear/Notion receiver verifies against) is NEVER returned outward: a member who could read it could forge validly-signed webhooks that launch agents (H1 audit). Mirroring the auto_developer_webhook_secret posture, we expose only whether one is configured. The user supplies the secret on create/update, so they already know its value and never need it read back.

boolean
issue_tracker_credential_id
required
string | null format: uuid
issue_tracker_key
required
string | null
issue_tracker_state_map
required

ADR 0029 Slice 6 (D7) — per-provider state-name overrides. The runtime type stays serde_json::Value (a free-form JSONB column); the spec is narrowed to the real serialized shape — a map keyed by tracker provider name (linear / notion) to a [TrackerStateNames] override bag.

object | null
issue_tracker_webhook_secret_set
required
boolean
max_concurrent_runs
required

Issue #110: per-project concurrency cap; None = unlimited.

integer | null format: int32
memory_governance_policy
required

#708 W13 — the project-tier SPARSE memory-governance override (mig 289), or null to inherit the workspace policy entirely. A sparse per-scope JSONB bag ({workspace, project, personal}) the project-edit settings seed from.

monthly_budget_usd
required
number | null format: double
name
required
string
notify_config
required
One of:

SC-21 — the project-tier SPARSE notification override (mig 436), or null to inherit everything: {human_action_channel, project_channel}. Surfaced so the project Notifications row seeds from it and carries the stored project channel back verbatim on its write (the channel itself is bound only by the link-code handshake).

object
human_action_channel

Where a HUMAN-ACTION notification (question, approval, expiring credential) lands for this project: telegram | discord | inbox_only. Absent = every linked platform, as before. Never a mute: inbox_only still shows every pending decision in the in-app inbox.

string | null
project_channel

CLEAR-ONLY here: null removes the project’s report channel. A channel is SET only through the link-code handshake (POST .../notify-config/project-channel/link-token then /link <code> in that chat); a written channel id is refused. On the READ side (the project GET) it carries the stored {platform, external_id, consented_by, consented_at}, typed as an open map so a client parse keeps every key.

object | null
placement_policy
required
One of:

SC-6 — the project tier of the runner placement policy (projects.placement_policy), or null to inherit the workspace default. Folded in by the detail and update handlers; null on the list.

object
on_no_runner
One of:

SC-6 — what a task does when no runner is eligible.

string
Allowed values: queue fail local
queue_timeout_minutes

How long an unbound assignment waits before it fails with no_runner_timeout (built-in 120).

integer | null format: int32
>= 1
required_worker_group_ids
required

ADR 0046 RUNG 1b — the project’s worker-group affinity override. null inherits the profile/workspace resolution; an empty array is an explicit no-affinity override. This mirrors the writable project update field so clients can seed and round-trip the current binding.

Array<string> | null
user_id
required
string format: uuid
workspace_id
required
string | null format: uuid

Example

{
"closeout_config": {
"project_docs": {
"condition": "if_touched"
},
"user_docs": {
"condition": "if_touched"
},
"wiki": {
"condition": "if_touched"
}
},
"placement_policy": {
"on_no_runner": "queue"
}
}

Structured client error

Media typeapplication/json

The canonical JSON body of every error response. Every AppError serializes as this exact shape; code is the generated stable machine-readable vocabulary.

object
cap
One of:

Present only on an MCP budget refusal (429) — the refusing layer + retry hint.

object
layer
required

The refusing layer.

string
limit
required

The layer’s budget.

integer format: int64
retry_after_seconds

Seconds until a retry can pass, or null when it never will for this session.

integer | null format: int64
used
required

Calls already counted in the layer.

integer format: int64
code
required

Machine-readable, stable error code.

string
Allowed values: not_found unauthorized forbidden license_required license_expired fresh_auth_required source_not_released bad_request unprocessable precondition_failed conflict artifact_staging_busy artifact_staging_store_unavailable intervention_attachment_limit method_not_allowed rate_limited too_many_requests quota_exceeded mcp_cap_exceeded form_schema_invalid autosave_not_offered submit_not_offered idempotency_key_reused response_cap_reached required_missing database_error docker_error vault_error internal_error artifact_frames_unavailable identity_native_custody_unconfigured launch_concurrency_limit launch_already_active launch_not_pending launch_budget_exhausted launch_draining launch_side_effects_disabled launch_dispatch_disabled no_eligible_runner launch_image_unavailable pull_request_no_git_branch pull_request_no_project project_credential_missing project_credential_expired project_credential_revoked project_credential_substitution project_parent_credential_not_current project_lineage_invalid project_binding_missing project_binding_mismatch project_not_found project_capability_not_granted project_capability_unknown project_capabilities_required project_history_is_not_authority project_task_not_found project_task_project_missing project_task_not_active project_native_origin_missing project_broader_scope_required project_system_scope_required project_lifetime_invalid project_lifetime_not_finite project_lifetime_exceeds_maximum project_delegation_exceeds_parent project_renewal_not_allowed project_delegation_widened project_audience_mismatch project_deployment_claim_missing project_authority_disabled project_issuer_not_current project_operation_not_durable project_dispatch_gate_refused
details
One of:

Present only on a quota-exceeded 403 — the inline upgrade-CTA payload.

object
key
required

The entitlement feature key that was hit, e.g. apps.max_count.

string
limit
required

The plan’s limit for this key.

integer format: int64
upgrade_url
required

Where to send the user to upgrade.

string
used
required

Current usage (count or bytes, per the key).

integer format: int64
error
required

Human-readable message (the server’s English text; the client may localize by code).

string
launch
One of:

Present on a launch refusal (400/403/409) — the structured facts only the refusing class can fill: occupancy, exhausted budget, or required labels.

object
active

Weighted workspace slots already held by starting/running agent runs.

integer | null format: int64
cap_usd

The budget cap that refused.

number | null format: double
effective_spend_usd

Effective spend of the refusing budget scope (spend + in-flight reservations).

number | null format: double
max

The workspace’s configured agent-concurrency cap.

integer | null format: int64
provider

The provider whose budget cap refused; absent for the workspace-wide cap.

string | null
required_labels

Runner labels a fail-policy placement required and no runner offered.

Array<string>

Example

{
"code": "not_found"
}

Authentication required

Media typeapplication/json

The canonical JSON body of every error response. Every AppError serializes as this exact shape; code is the generated stable machine-readable vocabulary.

object
cap
One of:

Present only on an MCP budget refusal (429) — the refusing layer + retry hint.

object
layer
required

The refusing layer.

string
limit
required

The layer’s budget.

integer format: int64
retry_after_seconds

Seconds until a retry can pass, or null when it never will for this session.

integer | null format: int64
used
required

Calls already counted in the layer.

integer format: int64
code
required

Machine-readable, stable error code.

string
Allowed values: not_found unauthorized forbidden license_required license_expired fresh_auth_required source_not_released bad_request unprocessable precondition_failed conflict artifact_staging_busy artifact_staging_store_unavailable intervention_attachment_limit method_not_allowed rate_limited too_many_requests quota_exceeded mcp_cap_exceeded form_schema_invalid autosave_not_offered submit_not_offered idempotency_key_reused response_cap_reached required_missing database_error docker_error vault_error internal_error artifact_frames_unavailable identity_native_custody_unconfigured launch_concurrency_limit launch_already_active launch_not_pending launch_budget_exhausted launch_draining launch_side_effects_disabled launch_dispatch_disabled no_eligible_runner launch_image_unavailable pull_request_no_git_branch pull_request_no_project project_credential_missing project_credential_expired project_credential_revoked project_credential_substitution project_parent_credential_not_current project_lineage_invalid project_binding_missing project_binding_mismatch project_not_found project_capability_not_granted project_capability_unknown project_capabilities_required project_history_is_not_authority project_task_not_found project_task_project_missing project_task_not_active project_native_origin_missing project_broader_scope_required project_system_scope_required project_lifetime_invalid project_lifetime_not_finite project_lifetime_exceeds_maximum project_delegation_exceeds_parent project_renewal_not_allowed project_delegation_widened project_audience_mismatch project_deployment_claim_missing project_authority_disabled project_issuer_not_current project_operation_not_durable project_dispatch_gate_refused
details
One of:

Present only on a quota-exceeded 403 — the inline upgrade-CTA payload.

object
key
required

The entitlement feature key that was hit, e.g. apps.max_count.

string
limit
required

The plan’s limit for this key.

integer format: int64
upgrade_url
required

Where to send the user to upgrade.

string
used
required

Current usage (count or bytes, per the key).

integer format: int64
error
required

Human-readable message (the server’s English text; the client may localize by code).

string
launch
One of:

Present on a launch refusal (400/403/409) — the structured facts only the refusing class can fill: occupancy, exhausted budget, or required labels.

object
active

Weighted workspace slots already held by starting/running agent runs.

integer | null format: int64
cap_usd

The budget cap that refused.

number | null format: double
effective_spend_usd

Effective spend of the refusing budget scope (spend + in-flight reservations).

number | null format: double
max

The workspace’s configured agent-concurrency cap.

integer | null format: int64
provider

The provider whose budget cap refused; absent for the workspace-wide cap.

string | null
required_labels

Runner labels a fail-policy placement required and no runner offered.

Array<string>

Example

{
"code": "not_found"
}

Permission denied

Media typeapplication/json

The canonical JSON body of every error response. Every AppError serializes as this exact shape; code is the generated stable machine-readable vocabulary.

object
cap
One of:

Present only on an MCP budget refusal (429) — the refusing layer + retry hint.

object
layer
required

The refusing layer.

string
limit
required

The layer’s budget.

integer format: int64
retry_after_seconds

Seconds until a retry can pass, or null when it never will for this session.

integer | null format: int64
used
required

Calls already counted in the layer.

integer format: int64
code
required

Machine-readable, stable error code.

string
Allowed values: not_found unauthorized forbidden license_required license_expired fresh_auth_required source_not_released bad_request unprocessable precondition_failed conflict artifact_staging_busy artifact_staging_store_unavailable intervention_attachment_limit method_not_allowed rate_limited too_many_requests quota_exceeded mcp_cap_exceeded form_schema_invalid autosave_not_offered submit_not_offered idempotency_key_reused response_cap_reached required_missing database_error docker_error vault_error internal_error artifact_frames_unavailable identity_native_custody_unconfigured launch_concurrency_limit launch_already_active launch_not_pending launch_budget_exhausted launch_draining launch_side_effects_disabled launch_dispatch_disabled no_eligible_runner launch_image_unavailable pull_request_no_git_branch pull_request_no_project project_credential_missing project_credential_expired project_credential_revoked project_credential_substitution project_parent_credential_not_current project_lineage_invalid project_binding_missing project_binding_mismatch project_not_found project_capability_not_granted project_capability_unknown project_capabilities_required project_history_is_not_authority project_task_not_found project_task_project_missing project_task_not_active project_native_origin_missing project_broader_scope_required project_system_scope_required project_lifetime_invalid project_lifetime_not_finite project_lifetime_exceeds_maximum project_delegation_exceeds_parent project_renewal_not_allowed project_delegation_widened project_audience_mismatch project_deployment_claim_missing project_authority_disabled project_issuer_not_current project_operation_not_durable project_dispatch_gate_refused
details
One of:

Present only on a quota-exceeded 403 — the inline upgrade-CTA payload.

object
key
required

The entitlement feature key that was hit, e.g. apps.max_count.

string
limit
required

The plan’s limit for this key.

integer format: int64
upgrade_url
required

Where to send the user to upgrade.

string
used
required

Current usage (count or bytes, per the key).

integer format: int64
error
required

Human-readable message (the server’s English text; the client may localize by code).

string
launch
One of:

Present on a launch refusal (400/403/409) — the structured facts only the refusing class can fill: occupancy, exhausted budget, or required labels.

object
active

Weighted workspace slots already held by starting/running agent runs.

integer | null format: int64
cap_usd

The budget cap that refused.

number | null format: double
effective_spend_usd

Effective spend of the refusing budget scope (spend + in-flight reservations).

number | null format: double
max

The workspace’s configured agent-concurrency cap.

integer | null format: int64
provider

The provider whose budget cap refused; absent for the workspace-wide cap.

string | null
required_labels

Runner labels a fail-policy placement required and no runner offered.

Array<string>

Example

{
"code": "not_found"
}

Project or referenced credential not found

Media typeapplication/json

The canonical JSON body of every error response. Every AppError serializes as this exact shape; code is the generated stable machine-readable vocabulary.

object
cap
One of:

Present only on an MCP budget refusal (429) — the refusing layer + retry hint.

object
layer
required

The refusing layer.

string
limit
required

The layer’s budget.

integer format: int64
retry_after_seconds

Seconds until a retry can pass, or null when it never will for this session.

integer | null format: int64
used
required

Calls already counted in the layer.

integer format: int64
code
required

Machine-readable, stable error code.

string
Allowed values: not_found unauthorized forbidden license_required license_expired fresh_auth_required source_not_released bad_request unprocessable precondition_failed conflict artifact_staging_busy artifact_staging_store_unavailable intervention_attachment_limit method_not_allowed rate_limited too_many_requests quota_exceeded mcp_cap_exceeded form_schema_invalid autosave_not_offered submit_not_offered idempotency_key_reused response_cap_reached required_missing database_error docker_error vault_error internal_error artifact_frames_unavailable identity_native_custody_unconfigured launch_concurrency_limit launch_already_active launch_not_pending launch_budget_exhausted launch_draining launch_side_effects_disabled launch_dispatch_disabled no_eligible_runner launch_image_unavailable pull_request_no_git_branch pull_request_no_project project_credential_missing project_credential_expired project_credential_revoked project_credential_substitution project_parent_credential_not_current project_lineage_invalid project_binding_missing project_binding_mismatch project_not_found project_capability_not_granted project_capability_unknown project_capabilities_required project_history_is_not_authority project_task_not_found project_task_project_missing project_task_not_active project_native_origin_missing project_broader_scope_required project_system_scope_required project_lifetime_invalid project_lifetime_not_finite project_lifetime_exceeds_maximum project_delegation_exceeds_parent project_renewal_not_allowed project_delegation_widened project_audience_mismatch project_deployment_claim_missing project_authority_disabled project_issuer_not_current project_operation_not_durable project_dispatch_gate_refused
details
One of:

Present only on a quota-exceeded 403 — the inline upgrade-CTA payload.

object
key
required

The entitlement feature key that was hit, e.g. apps.max_count.

string
limit
required

The plan’s limit for this key.

integer format: int64
upgrade_url
required

Where to send the user to upgrade.

string
used
required

Current usage (count or bytes, per the key).

integer format: int64
error
required

Human-readable message (the server’s English text; the client may localize by code).

string
launch
One of:

Present on a launch refusal (400/403/409) — the structured facts only the refusing class can fill: occupancy, exhausted budget, or required labels.

object
active

Weighted workspace slots already held by starting/running agent runs.

integer | null format: int64
cap_usd

The budget cap that refused.

number | null format: double
effective_spend_usd

Effective spend of the refusing budget scope (spend + in-flight reservations).

number | null format: double
max

The workspace’s configured agent-concurrency cap.

integer | null format: int64
provider

The provider whose budget cap refused; absent for the workspace-wide cap.

string | null
required_labels

Runner labels a fail-policy placement required and no runner offered.

Array<string>

Example

{
"code": "not_found"
}

Structured server error

Media typeapplication/json

The canonical JSON body of every error response. Every AppError serializes as this exact shape; code is the generated stable machine-readable vocabulary.

object
cap
One of:

Present only on an MCP budget refusal (429) — the refusing layer + retry hint.

object
layer
required

The refusing layer.

string
limit
required

The layer’s budget.

integer format: int64
retry_after_seconds

Seconds until a retry can pass, or null when it never will for this session.

integer | null format: int64
used
required

Calls already counted in the layer.

integer format: int64
code
required

Machine-readable, stable error code.

string
Allowed values: not_found unauthorized forbidden license_required license_expired fresh_auth_required source_not_released bad_request unprocessable precondition_failed conflict artifact_staging_busy artifact_staging_store_unavailable intervention_attachment_limit method_not_allowed rate_limited too_many_requests quota_exceeded mcp_cap_exceeded form_schema_invalid autosave_not_offered submit_not_offered idempotency_key_reused response_cap_reached required_missing database_error docker_error vault_error internal_error artifact_frames_unavailable identity_native_custody_unconfigured launch_concurrency_limit launch_already_active launch_not_pending launch_budget_exhausted launch_draining launch_side_effects_disabled launch_dispatch_disabled no_eligible_runner launch_image_unavailable pull_request_no_git_branch pull_request_no_project project_credential_missing project_credential_expired project_credential_revoked project_credential_substitution project_parent_credential_not_current project_lineage_invalid project_binding_missing project_binding_mismatch project_not_found project_capability_not_granted project_capability_unknown project_capabilities_required project_history_is_not_authority project_task_not_found project_task_project_missing project_task_not_active project_native_origin_missing project_broader_scope_required project_system_scope_required project_lifetime_invalid project_lifetime_not_finite project_lifetime_exceeds_maximum project_delegation_exceeds_parent project_renewal_not_allowed project_delegation_widened project_audience_mismatch project_deployment_claim_missing project_authority_disabled project_issuer_not_current project_operation_not_durable project_dispatch_gate_refused
details
One of:

Present only on a quota-exceeded 403 — the inline upgrade-CTA payload.

object
key
required

The entitlement feature key that was hit, e.g. apps.max_count.

string
limit
required

The plan’s limit for this key.

integer format: int64
upgrade_url
required

Where to send the user to upgrade.

string
used
required

Current usage (count or bytes, per the key).

integer format: int64
error
required

Human-readable message (the server’s English text; the client may localize by code).

string
launch
One of:

Present on a launch refusal (400/403/409) — the structured facts only the refusing class can fill: occupancy, exhausted budget, or required labels.

object
active

Weighted workspace slots already held by starting/running agent runs.

integer | null format: int64
cap_usd

The budget cap that refused.

number | null format: double
effective_spend_usd

Effective spend of the refusing budget scope (spend + in-flight reservations).

number | null format: double
max

The workspace’s configured agent-concurrency cap.

integer | null format: int64
provider

The provider whose budget cap refused; absent for the workspace-wide cap.

string | null
required_labels

Runner labels a fail-policy placement required and no runner offered.

Array<string>

Example

{
"code": "not_found"
}