Saving entity state to the Cloud

Hello!

I’m looking for a way to save if and entity has been enabled or disabled to a cloud server, so that any player can see it. In my case, I have an avatar editor, and one can enable or disable a hat on said character. Does anyone have any examples or suggestions on how to do this?
Thanks!