Change a labeler's directory entry (ops, human admin or curator)
PATCH /v1/ops/community/labelers/{pubkey}- who may call it
- An operator
- a human:
adminorcurator - how fresh
- Never cached
- every answer carries the index's height and the node's
- MCP tool
- None
On this page
Any subset of name, description, url, criteria_url, listed. Audited.
Parameters
| Name | Where | Type | Required | What it does |
|---|---|---|---|---|
pubkey | path | string | required | 64 hex characters or an npub1… id. |
name | body | string | optional | A new name, 1 to 120 characters once trimmed. |
description | body | string | optional | A new description, at most 1,000 characters; an empty one removes it. |
url | body | string | optional | A new site, an http(s) URL; an empty one removes it. |
criteria_url | body | string | optional | A new criteria page, an http(s) URL; an empty one removes it. |
listed | body | boolean | optional | List the labeler, or unlist it. |
The body is application/json.
schema LabelerPatch
namestring — A new name, 1 to 120 characters once trimmed. · at most 120 charactersdescriptionstring — A new description, at most 1,000 characters; an empty one removes it. · at most 1000 charactersurlstring (uri) — A new site, an http(s) URL; an empty one removes it.criteria_urlstring (uri) — A new criteria page, an http(s) URL; an empty one removes it.listedboolean — List the labeler, or unlist it.
What it answers
The entry after the change.
| Field | Type | What it carries |
|---|---|---|
pubkey | string | The labeler's public key, 64 hex. |
npub | string or null | That key as an npub (NIP-19). Null when it does not encode. |
name | string | The labeler's name in the directory. |
namespace | string | io.btcintel. |
description | string or null | What the labeler does. Null when the directory says nothing. |
url | string or null | The labeler's site. Null when it has none. |
criteria_url | string or null | Where the labeler explains its criteria. |
listed | boolean | Shown in the public directory. |
added_by | string or null | Who added it to the directory. |
added_at | string | When it was added. |
schema Labeler
pubkeystring required — The labeler's public key, 64 hex.npubstring | null — That key as an npub (NIP-19). Null when it does not encode.namestring required — The labeler's name in the directory.namespacestring required —io.btcintel.descriptionstring | null — What the labeler does. Null when the directory says nothing.urlstring | null (uri) — The labeler's site. Null when it has none.criteria_urlstring | null (uri) — Where the labeler explains its criteria.listedboolean required — Shown in the public directory.added_bystring | null — Who added it to the directory.added_atstring (date-time) required — When it was added.
Errors
| Status | Code | When |
|---|---|---|
| 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. |
Each comes in the one error envelope, and none is cached: an error carries Cache-Control: no-store.
Example
curl and jq, in any 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 '{}' | 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.