Brain Docs

Reference

Rust SDKInstallationHTTP clientWire client
create_statementget_statementlist_statementssupersede_statementtombstone_statementretract_statementstatement_history
ErrorsRetriesPagination
Brain/Docs
✦ ASKBrain on GitHubDashboard
Rust SDKStatementssupersede_statement

supersede_statement

Correct a claim by writing its replacement — the old version stays readable and the chain records the order.

PURPOSE

Replace a statement with a new version. The old one stops being current, stays readable, and the chain records the order. This is what a correction is — as distinct from tombstoning, which asserts the claim was never true.

POST/v1/statements/:id/supersedeBearer API keystable
async fn supersede_statement(&self, statement_id: &str, input: &CreateStatementInput) -> Result<SupersedeStatementResult, BrainHttpError>
Handshake credentialstable
async fn supersede_statement(&self, request: &StatementSupersedeRequest) -> Result<StatementSupersedeResponse>

Parameters

ParameterTypeRequired
statement_idstringrequired

The statement being replaced.

(new statement)CreateStatementInputrequired

A whole new statement, with the same fields create_statement takes. On the wire this is newStatement inside a StatementSupersedeRequest, with the old id as oldStatementId.

Returns

FieldTypePresence
new_statement_idstringalways

The replacement.

chain_rootstringalways

Unchanged — the chain root is stable across versions.

versionintegeralways

The new version number.

Store the chain root, not the version

Every version has its own id; only chainRoot is stable. A reference that should mean "where Priya works" belongs on the chain root, and a reference that should mean "the claim as it stood in March" belongs on the version.

On the wire

subject is UUID bytes and kind is an integer discriminant rather than a string. evidence is a single reference, not an array of ids. Every request carries a requestId plus an optional actAs.

See also
statement_historySupersession

Was this page helpful?

list_statements

Query statements by subject, predicate, kind and confidence — cursor-paged.

tombstone_statement

Mark a claim not-current with no replacement — this was never true.

On this page

ParametersReturnsOn the wire
Suggest an editOpen in Playground