btcintel

Change roles, budget, the kill switch or the account (human admin)

PATCH /v1/ops/operators/{id}
quién puede llamarla
Un operador
una persona: admin
qué cuesta
1 petición de la cuota
niveles y claves
cuán reciente
Nunca en caché
cada respuesta lleva la altura del índice y la del nodo
Herramienta MCP
Ninguna
En esta página

Parámetros

NombreDóndeTipoObligatorioQué hace
idrutastringobligatorioThe operator's id, as GET /v1/ops/operators lists it.
rolescuerpoarrayopcionalThe operator's roles, in place of the ones it has.
daily_action_budgetcuerpointegeropcionalThe operator's new daily budget of actions.
activecuerpobooleanopcionalfalse switches the operator off everywhere (403).
display_namecuerpostringopcionalThe operator's new display name. An empty one leaves the name as it is.
account_idcuerpointeger o nullopcionalThe open account a human operator signs in with; null unlinks. An agent operator answers 400; an account linked to another operator, 409. The audit log records the change under the admin.

El cuerpo es application/json.

esquema
  • roles array de string — The operator's roles, in place of the ones it has.
  • daily_action_budget integer — The operator's new daily budget of actions.
  • active boolean — false switches the operator off everywhere (403).
  • display_name string — The operator's new display name. An empty one leaves the name as it is.
  • account_id integer | null — The open account a human operator signs in with; null unlinks. An agent operator answers 400; an account linked to another operator, 409. The audit log records the change under the admin.

Qué responde

The operator after the change.

CampoTipoQué lleva
idstringThe operator's id.
kindstringA human or an agent.
display_namestringThe name shown for the operator.
rolesarrayWhat the operator may do: admin, curator, moderator, drafter.
daily_action_budgetinteger o nullAn agent operator's budget: the audited actions it may take in a UTC day before its writes answer 429. Null when none is set; a human's is never checked.
activebooleanWhether the operator is switched on. False switches it off everywhere (403).
created_atstringWhen the operator was created.
account_idintegerThe account a human operator signs in with; absent when none is linked.
esquema Operator
  • id string — The operator's id.
  • kind string — A human or an agent. · uno de "human", "agent"
  • display_name string — The name shown for the operator.
  • roles array de string — What the operator may do: admin, curator, moderator, drafter.
  • daily_action_budget integer | null — An agent operator's budget: the audited actions it may take in a UTC day before its writes answer 429. Null when none is set; a human's is never checked.
  • active boolean — Whether the operator is switched on. False switches it off everywhere (403).
  • created_at string (date-time) — When the operator was created.
  • account_id integer — The account a human operator signs in with; absent when none is linked.

Errores

EstadoCódigoCuándo
400invalid_inputMalformed input (invalid_input).
401unauthorizedunauthorized: the request does not say who makes it, or what it offers does not verify: no key or session where one is needed, or a password, a code, a passkey or a signed event that does not check. The message says what is missing.
403forbiddenforbidden: the caller is known but may not do this: a key without the scope or the tier the action needs, a session without an npub, a second factor or a recent sign-in, an operator without the role or switched off, or a source that does not allow it. The message says which.
404not_foundnot_found: what the path names is not known: not in the index (for a transaction, not in the node's mempool either), or no such record. The message says which.
409conflictThe account is linked to another operator (conflict).
429quota_exceededquota_exceeded: the caller's tier ran out of requests for the minute or the day. Retry-After says when to try again; every rate-limited answer carries X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset and X-RateLimit-Tier. While the deployment runs in log-only mode the decision is logged instead and X-RateLimit-Policy: log-only is set.

Cada uno llega en el sobre de error único, y ninguno se guarda en caché: un error lleva Cache-Control: no-store.

Ejemplo

curl y jq, en cualquier shell.

curl -s -X PATCH https://api.btcintel.io/v1/ops/operators/1 \
  -H "Authorization: Bearer $BTCINTEL_KEY" \
  -H 'Content-Type: application/json' \
  -d '{}' | jq

This route needs an operator credential. Set BTCINTEL_KEY to the ops bearer or a btci_ key with the ops:agent scope first: the snippet reads it from there and holds no key.