Metadata
Update metadata
Update metadata on a resource with the Go SDK.
POST
/{id}/metadataUse 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",
},
},
)
| Field | Type | Description |
|---|---|---|
entityID | string | ID of the entity to update (ldg_…, txn_…, bln_…, or idt_…). |
MetaData | blnkgo.MetaData | Key-value pairs to add or update on the entity. |
Response
{
"meta_data": {
"project_owner": "Acme LLC",
"update_status": "Approved"
}
}Go response (*blnkgo.Metadata)
| Field | Type | Description |
|---|---|---|
MetaData | blnkgo.MetaData | The full metadata object after the update. |