Message cache with update?

Is there a way in TB78 to cache data with a message (ie. an API response) using the message id?

It would be great to use the update function to set a new property with the API response that could be used as a cache in onMessageDisplayed.

https://thunderbird-webextensions.readthedocs.io/en/78/messages.html#update-messageid-newproperties

In TB68 I was using the setStringProperty from messageURIToMsgHdr but I haven’t found anyway to do this in TB78.

Thanks,