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 client.Metadata.UpdateMetadata to add or change metadata on an existing ledger, transaction, balance, or identity.
1

Call the method

client.Metadata.UpdateMetadata
result, resp, err := client.Metadata.UpdateMetadata(
	"ldg_073f7ffe-9dfd-42ce",
	blnkgo.UpdateMetaDataRequest{
		MetaData: map[string]interface{}{
			"project_owner": "Acme LLC",
			"update_status": "Approved",
		},
	},
)
FieldTypeDescription
entityIDstringID of the entity to update (ldg_…, txn_…, bln_…, or idt_…).
MetaDatamap[string]interface{}Key-value pairs to add or update on the entity.
2

Use the updated metadata

Read result.MetaData for the full metadata object after the update. New keys are merged with existing metadata.
3

Response

201 Created
{
  "meta_data": {
    "project_owner": "Acme LLC",
    "update_status": "Approved"
  }
}
FieldTypeDescription
meta_dataobjectThe 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.