Skip to main content

Access to measurements on Edit mode via API

  • August 7, 2025
  • 1 reply
  • 15 views

Tiago_Almeida1

When I want to access annotations via API on edit mode, I just need to check the node.annotations object.

It would be great to also have a node.measurements object to work with.

When annotations came to edit mode in beta at my org, I created a plugin for deleting all annotations after a colleague complained they needed to delete them for stakeholders.

I’ve got someone asking to make it work with measurements as well, but that’s not really possible without a new API endpoint for it accessible via edit mode.

1 reply

RoyHarrington

That makes sense, and you’re not wrong. From a developer point of view, measurements behave like first-class objects in edit mode, so not exposing them via the API feels incomplete. Having node.annotations but no equivalent for measurements creates an awkward gap. Especially when you’ve already built tooling around cleanup and automation. Your use case is totally valid. Right now, without a dedicated measurements object or endpoint, there’s no clean or reliable way to manage them. Workarounds would be fragile at best. This really sounds like something that should be addressed at the API level, not in plugins trying to guess internal state.