Metadata

Update metadata

Update metadata on a resource with the Java SDK.

POST/{id}/metadata

Use blnk.metadata().update for this operation.

Call the method

String ledgerId = "ldg_073f7ffe-9dfd-42ce-aa50-d1dca1788adc";

ApiResponse<JsonNode> response = blnk.metadata().update(
    ledgerId,
    UpdateMetadataData.create()
        .metaData(Map.of("environment", "production")));
FieldTypeDescription
idStringID of the entity to update (ldg_…, txn_…, bln_…, or idt_…).
data.meta_dataMap<String, Object>Key-value pairs to add or update on the entity.

Use the updated metadata

Read response.data().get("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_dataJsonNodeThe full metadata object after the update.