Metadata

Update metadata

Update metadata on a resource with the Python SDK.

POST/{id}/metadata

Use blnk.metadata.update to add or change metadata on an existing ledger, transaction, balance, or identity.

Call the method

response = blnk.metadata.update(
  "ldg_073f7ffe-9dfd-42ce-aa50-d1dca1788adc",
  {
    "meta_data": {
      "project_owner": "Acme LLC",
      "update_status": "Approved",
    },
  },
)
FieldTypeDescription
idstrID of the entity to update (ldg_…, txn_…, bln_…, or idt_…).
data.meta_datadictKey-value pairs to add or update on the entity.

Use the updated metadata

Read response.data["meta_data"] for the full metadata object after the update. New keys are merged with existing metadata.

Response

{
  "meta_data": {
    "project_owner": "Acme LLC",
    "update_status": "Approved"
  }
}
FieldTypeDescription
meta_datadictThe full metadata object after the update.