Version: Current
Historical release snapshot. These docs are frozen. Read current docs.
POST /v1/ops/accounts/{provider}/{id}/state
Part of the API reference; this page is generated from the OpenAPI document that the gateway builds from its own route tables.
Provenance
Section titled “Provenance”- Contract version:
1.10.0 - Contract title: acumen gateway API
- Source:
acumen:docs/openapi/acumen-v1.openapi.json
Operations
Section titled “Operations”POST /v1/ops/accounts/{provider}/{id}/state
Section titled “POST /v1/ops/accounts/{provider}/{id}/state”Set an agent seat’s state (proof-gated enable)
Enables or disables one agent seat: {state:“active”|“disabled”}. Enabling requires the seat’s own-200 proof — {status:200, model, at, key_fp}, recorded in the enable audit row — and the gateway refuses (412) when the proof’s key_fp does not match the stored credential fingerprint; a cli-oauth row refuses enable while parked (412) and disabling is always allowed. Operator (admin) scope.
- Operation id:
postV1OpsAccountsProviderIdState - Scope:
admin - Exposure:
operator - Mutating: yes
- Auth:
bearerAuth,operatorSession
Request
- Request body (application/json, required):
AgentStateRequest: AgentStateRequest (object)
| Field | Type | Required | Notes |
|---|---|---|---|
proof |
AgentStateProof (object) | no | |
state |
string | no |
Responses
200: OKapplication/json:AgentState: AgentState (object)
400: schema_invalid — the request body or parameter failed validationapplication/problem+json:Problem: Problem (object)
401: auth_missing — no virtual key or operator sessionapplication/problem+json:Problem: Problem (object)
403: auth_scope — the credential lacks the route’s scopeapplication/problem+json:Problem: Problem (object)
404: resource_not_found — the addressed object does not existapplication/problem+json:Problem: Problem (object)
405: method_not_allowed — the path exists for another verbapplication/problem+json:Problem: Problem (object)
429: rate_limited — the per-key or per-IP bucket is exhaustedapplication/problem+json:Problem: Problem (object)
500: internal — the store or process failedapplication/problem+json:Problem: Problem (object)
501: not_implemented — the route is declared but not wired in this buildapplication/problem+json:Problem: Problem (object)
503: store_unavailable — the dependency is down; retryableapplication/problem+json:Problem: Problem (object)