Is there way to add/remove annotation on the fly by javascript for an Annotation view?

I know we can have an annotation view for a doc, and user can manually add annotations, but do we support any api, so with that we can add/remove pre-defined annotations into the doc annotation viewer on the fly?


I know we have api to add annotation to a doc, but will it be show to the editing annotation viewer? probably not, because that api is calling cloud api, which probably not reflect to the current annotation viewer at the realtime.

Hello,


Thank you for your interest. Yes, you are right, if you add annotations via api call they will be viewed only after page refresh.