Skip to main content
POST
/
{id}
/
metadata
Update metadata
curl --request POST \
  --url http://localhost:5001/{id}/metadata \
  --header 'X-blnk-key: <api-key>'
Use blnk.Metadata.update to add or change metadata on an existing ledger, transaction, balance, or identity.
blnk.Metadata.update
const response = await blnk.Metadata.update(
  'ldg_073f7ffe-9dfd-42ce-aa50-d1dca1788adc',
  {
    meta_data: {
      project_owner: 'Acme LLC',
      update_status: 'Approved',
    },
  },
);
FieldDescription
idID of the entity to update (ldg_…, txn_…, bln_…, or idt_…).
data.meta_dataKey-value pairs to add or update on the entity.

Response shape

201 Created
{
  "meta_data": {
    "project_owner": "Acme LLC",
    "update_status": "Approved"
  }
}
FieldDescription
meta_dataThe full metadata object after the update.

How metadata works

Attaching custom attributes to Blnk objects.

Update metadata

HTTP request and response schema.

Need help?

We are very happy to help you make the most of Blnk, regardless of whether it is your first time or you are switching from another tool. To ask questions or discuss issues, please contact us or join our Discord community.