Help & DocumentationGetting DataAPI AccessAPI Changes in v7Understanding Type Enforcement in the v7 REST API

Understanding Type Enforcement in the v7 REST API

In v6, the data returned from MI REST APIs did not enforce strict type validation. As a result, numeric values were often returned as strings, e.g.,

  • in v6: {"element_id": '962'}
  • in v7: {"element_id": 962}

Beginning v7, significant structural changes have been made to MI application's core, leading to stronger type enforcement in the REST API. Now, numeric values are returned as integers rather than strings, providing more consistency and reliability in the data. This change may affect Portal Pages created in v6, which may have been built to expect numeric data as strings. Portal Page developers maintaining those pages will need to update them to handle new data types correctly.