Overview
This migration guide covers the breaking change introduced in Blnk v0.13.6 for the Update Metadata endpoint. The response now returns the fieldmeta_data (with underscore) instead of the inconsistent metadata.
If your code reads the update-metadata response by key, you need to handle this change.
Breaking changes summary
- From: Response contains
metadata(inconsistent with request body and other APIs) - To: Response uses
meta_data(consistent with request body and other APIs) - Impact: Code that reads the update-metadata response using the key
metadatawill no longer find the object. Usemeta_dataor support both for compatibility.
What changed
- Update Metadata response:
POST /{id}/metadataresponses now return the metadata object under the keymeta_dataonly. - Consistency: This aligns the response with the request body parameter name (
meta_data) and with how metadata is exposed elsewhere in the API.
Recommended approach: Expect both keys
To support Blnk versions before and after 0.13.6, read the metadata from the response using eithermeta_data or metadata, with meta_data taking precedence when present.