btcintel

Change a labeler's directory entry (ops, human admin or curator)

PATCH /v1/ops/community/labelers/{pubkey}
quién puede llamarla
Un operador
una persona: admin o curator
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

Any subset of name, description, url, criteria_url, listed. Audited.

Parámetros

NombreDóndeTipoObligatorioQué hace
pubkeyrutastringobligatorio64 hex characters or an npub1… id.
namecuerpostringopcionalA new name, 1 to 120 characters once trimmed.
descriptioncuerpostringopcionalA new description, at most 1,000 characters; an empty one removes it.
urlcuerpostringopcionalA new site, an http(s) URL; an empty one removes it.
criteria_urlcuerpostringopcionalA new criteria page, an http(s) URL; an empty one removes it.
listedcuerpobooleanopcionalList the labeler, or unlist it.

El cuerpo es application/json.

esquema LabelerPatch
  • name string — A new name, 1 to 120 characters once trimmed. · como mucho 120 caracteres
  • description string — A new description, at most 1,000 characters; an empty one removes it. · como mucho 1000 caracteres
  • url string (uri) — A new site, an http(s) URL; an empty one removes it.
  • criteria_url string (uri) — A new criteria page, an http(s) URL; an empty one removes it.
  • listed boolean — List the labeler, or unlist it.

Qué responde

The entry after the change.

CampoTipoQué lleva
pubkeystringThe labeler's public key, 64 hex.
npubstring o nullThat key as an npub (NIP-19). Null when it does not encode.
namestringThe labeler's name in the directory.
namespacestringio.btcintel.
descriptionstring o nullWhat the labeler does. Null when the directory says nothing.
urlstring o nullThe labeler's site. Null when it has none.
criteria_urlstring o nullWhere the labeler explains its criteria.
listedbooleanShown in the public directory.
added_bystring o nullWho added it to the directory.
added_atstringWhen it was added.
esquema Labeler
  • pubkey string obligatorio — The labeler's public key, 64 hex.
  • npub string | null — That key as an npub (NIP-19). Null when it does not encode.
  • name string obligatorio — The labeler's name in the directory.
  • namespace string obligatorio — io.btcintel.
  • description string | null — What the labeler does. Null when the directory says nothing.
  • url string | null (uri) — The labeler's site. Null when it has none.
  • criteria_url string | null (uri) — Where the labeler explains its criteria.
  • listed boolean obligatorio — Shown in the public directory.
  • added_by string | null — Who added it to the directory.
  • added_at string (date-time) obligatorio — When it was added.

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.
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/community/labelers/<pubkey>' \
  -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.