Triage one entry (ops)
PATCH /v1/ops/feedback/{id}- quién puede llamarla
- Un operador
- cuán reciente
- Nunca en caché
- cada respuesta lleva la altura del índice y la del nodo
- Herramienta MCP
- Ninguna
En esta página
Set the status, who triaged it (the operator by default) and the PR or changelog entry that answered it. Every patch stamps triaged_at and is audited.
Parámetros
| Nombre | Dónde | Tipo | Obligatorio | Qué hace |
|---|---|---|---|---|
id | ruta | integer | obligatorio | The entry's id. |
status | cuerpo | string | opcional | The entry's new state. |
triaged_by | cuerpo | string | opcional | Defaults to the operator making the call. |
linked_change_url | cuerpo | string | opcional | The PR or changelog entry that answered the feedback. |
El cuerpo es application/json.
esquema FeedbackPatch
statusstring — The entry's new state. · uno de "new", "triaged", "linked", "closed", "rejected"triaged_bystring — Defaults to the operator making the call. · como mucho 80 caractereslinked_change_urlstring (uri) — The PR or changelog entry that answered the feedback. · como mucho 400 caracteres
Qué responde
The entry after the change.
| Campo | Tipo | Qué lleva |
|---|---|---|
id | integer | The entry's id. |
at | string | When it arrived. |
channel | string | How it came: the web sheet, an agent over MCP, or an automatic failure report. |
tier | string o null | The caller's tier when it arrived. |
subject | object o null | The subject the text is about. Null when it names none. |
page | string o null | The web page or the agent context it came from. Null when it gave none. |
tool | string o null | The MCP tool involved. Null when it names none. |
app_version | string o null | The version of the app that sent it. Null when it gave none. |
text | string | The text, as given. |
details | object | The structured context sent with it; a claim_id sent with the entry is kept here. {} when there is none. |
contact | object o null | The npub, the key or both that the requester tied the report to. Null when there is none. |
status | string | Where it stands in triage. |
triaged_by | string o null | Who triaged it last: the operator who changed it, unless the change named someone. Null until triaged. |
triaged_at | string o null | When it was last triaged: every change sets it. Null until the first. |
linked_change_url | string o null | The pull request or changelog entry that answered it. Null until one is linked. |
esquema FeedbackEntry
idinteger obligatorio — The entry's id.atstring (date-time) obligatorio — When it arrived.channelstring obligatorio — How it came: the web sheet, an agent over MCP, or an automatic failure report. · uno de "web", "mcp", "auto"tierstring | null — The caller's tier when it arrived.subjectobject | null — The subject the text is about. Null when it names none.kindstring — The subject's kind.keystring — The subject's canonical key.
pagestring | null — The web page or the agent context it came from. Null when it gave none.toolstring | null — The MCP tool involved. Null when it names none.app_versionstring | null — The version of the app that sent it. Null when it gave none.textstring obligatorio — The text, as given.detailsobject obligatorio — The structured context sent with it; aclaim_idsent with the entry is kept here.{}when there is none.contactobject | null — The npub, the key or both that the requester tied the report to. Null when there is none.npubstring — 64 hex.key_idinteger — The id of the key the report is tied to. Absent when the contact names none.
statusstring obligatorio — Where it stands in triage. · uno de "new", "triaged", "linked", "closed", "rejected"triaged_bystring | null — Who triaged it last: the operator who changed it, unless the change named someone. Null until triaged.triaged_atstring | null (date-time) — When it was last triaged: every change sets it. Null until the first.linked_change_urlstring | null — The pull request or changelog entry that answered it. Null until one is linked.
Errores
| Estado | Código | Cuándo |
|---|---|---|
| 400 | invalid_input | Malformed input (invalid_input). |
| 401 | unauthorized | unauthorized: 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. |
| 403 | forbidden | forbidden: 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. |
| 404 | not_found | not_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. |
| 429 | quota_exceeded | quota_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/feedback/1 \
-H "Authorization: Bearer $BTCINTEL_KEY" \
-H 'Content-Type: application/json' \
-d '{"status":"linked","linked_change_url":"https://github.com/satsboard-io/btcintel-api/pull/50"}' | jqThis 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.