Metadata

Update metadata

Update metadata on a resource with the Go SDK.

POST/{id}/metadata

Use client.Metadata.UpdateMetadata to add or change metadata on an existing ledger, transaction, balance, or identity.

Call the method

result, _, _ := client.Metadata.UpdateMetadata(
	"ldg_073f7ffe-9dfd-42ce-aa50-d1dca1788adc",
	blnkgo.UpdateMetaDataRequest{
		MetaData: blnkgo.MetaData{
			"project_owner": "Acme LLC",
			"update_status": "Approved",
		},
	},
)
FieldTypeDescription
entityIDstringID of the entity to update (ldg_…, txn_…, bln_…, or idt_…).
MetaDatablnkgo.MetaDataKey-value pairs to add or update on the entity.

Response

{
  "meta_data": {
    "project_owner": "Acme LLC",
    "update_status": "Approved"
  }
}

Go response (*blnkgo.Metadata)

FieldTypeDescription
MetaDatablnkgo.MetaDataThe full metadata object after the update.