BSV blockchainBSV blockchain

Ban a domain or outpoint

POST/admin/ban

Body application/json

type"domain" | "outpoint"required
valuestringrequired
reasonstring

Response

Ban applied.

statusstring
messagestring

Bad request — validation error or missing required field.

statusstring
messagestring
codestring

Stable machine-readable error code (see specs/errors.md).

No authentication credentials provided.

statusstring
messagestring
codestring

Stable machine-readable error code (see specs/errors.md).

Credentials provided but insufficient.

statusstring
messagestring
codestring

Stable machine-readable error code (see specs/errors.md).

Request
curl -X POST "https://{fqdn}/admin/ban" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <token>" \
  -H "Authorization: Bearer <token>" \
  -d '{
  "type": "domain",
  "value": "string",
  "reason": "string"
}'
Response
{
  "status": "string",
  "message": "string"
}