# write one fact. it came from outside, so nothing produced it.
curl -X POST https://api.blazie.dev/write \
-H "Authorization: Bearer $BLAZIE_TOKEN" \
-d '{"ledger":"tenant-7","facts":[
{"id":"ada","attribute":"height","value":180}]}'
{"name":{"tenant-7":42}}
# ask at that name. this answer does not change again.
curl -X POST https://api.blazie.dev/ask \
-H "Authorization: Bearer $BLAZIE_TOKEN" \
-d '{"name":{"tenant-7":42},"pattern":{"attribute":"height"}}'
{"facts":[
{"id":"ada","attribute":"height","value":180,"tx":42,"by":null}]}
# a later fact corrects it. the old name still answers 180.
curl -X POST https://api.blazie.dev/write \
-H "Authorization: Bearer $BLAZIE_TOKEN" \
-d '{"ledger":"tenant-7","facts":[
{"id":"ada","attribute":"height","value":181}]}'
{"name":{"tenant-7":43}}