What is metadata?
Metadata lets you store supplementary information alongside an entity’s standard data model by adding custom attributes or annotations without altering the entity’s predefined schema. In Midaz, metadata is an object that supports key-value pairs in these data types: strings (up to 100 characters), integers, floats, and booleans.
Example of metadata
Consider an Organization entity as shown below:POST, PUT, or PATCH requests:
Creating entities with metadata
When creating an entity, you can submit metadata through our
POST endpoints and add custom data from the start.
Updating and removing metadata
Our API follows the JSON Merge Patch RFC for metadata updates:
- Adding or Updating Values: Submitting a key with a new value in a
PUTorPATCHrequest updates the existing metadata. - Removing Keys: Omitting a previously included key in a subsequent
PUTorPATCHrequest removes that key-value pair from the entity’s metadata.
Practical example: modifying metadata
Suppose an Organization entity initially included metadata for sector and employee count. To update the employee count while removing the sector, send aPATCH request with the following metadata:

