Drop an index from a ledger
Changed onRemoves an index from a ledger. The path parameter carries the target IndexID in canonical form (e.g. metadata:TARGET_TYPE_ACCOUNT:color, tx_builtin:TX_BUILTIN_INDEX_TIMESTAMP). Requires ledger:WriteLedger scope.
The drop is idempotent. An IndexID that has no registry entry on the ledger (never created, or already dropped) also answers 204, and each committed drop appends a DROP_INDEX entry to the ledger log. A mistyped canonical id is therefore not reported; read the index with GET /v3/{ledgerName}/indexes/{canonicalId} first when the caller must know that it exists. 404 means that the ledger does not exist.
Request
- Base URLhttp://localhost:9000
- URLhttp://localhost:9000/v3/{ledgerName}/indexes/{canonicalId}
- Auth
- HTTP bearer
- or none
Path parameters
Name of the ledger
Canonical form of the target IndexID.
Headers
Response
Index removed, or no index with this id was registered on the ledger.
Changes
- info
api operation id
dropIndexremoved and replaced withv3DropIndex
- info
- info
added the media type
text/plainfor the response with the status - info
added the media type
text/plainfor the response with the status - info
added the non-success response with the status
- info