Document apiReferenceMetadata
metadata.update
Replace the JSON payload of an existing anchored-metadata entry. Replace semantics; no merge. The anchor is left untouched.
mutates documentdry runidempotent
doc.metadata.update(…)Expected result
Returns an AnchoredMetadataMutationResult with the entry id on success or a failure.
Inputs
idstringrequiredpayloadunknownrequiredResult
Output fields
true
successtruerequiredidstringrequiredfalse
successfalserequiredfailureobjectrequiredFields
codestringrequiredmessagestringrequireddetailsunknownFailures
Pre-apply throws
TARGET_NOT_FOUNDINVALID_TARGETINVALID_INPUT
2 more codes
CAPABILITY_UNAVAILABLEREVISION_MISMATCH
Non-applied receipt codes
TARGET_NOT_FOUNDINVALID_INPUT
Raw schemas
Open the generated JSON artifact for the exact input, output, success, and failure schemas represented by this contract version.
View raw JSON schemas