Skip to main content
Known Participant
June 9, 2021
Answered

AnnotationManager: CreateAnnotation()

  • June 9, 2021
  • 1 reply
  • 644 views

Hi, 

 

I'd like to have this one more API for creating new annotations, as currently there are only addAnnotations().

 

I'd like to use this API to create new annotations from my code or at least creating new replies to existing APIs.

 

I wonder if this API will be implemented soon? 

 

thank you, 

This topic has been closed for replies.
Correct answer Joel Geraci

You can use any GUID or UUID generator for that.

1 reply

Joel Geraci
Community Expert
Community Expert
June 9, 2021

Annotation objects are defined using JSON. To create a new annotation that can later be used by the addAnnotations() call, you can simply define it using the annotation schema. Just be sure to set the "source" property to the id of the file that you load into Embed API.

tangyunAuthor
Known Participant
June 9, 2021
hi thanks for the prompt reply.

i've thought about this solution. the only question i have is that how to create hash-like ID strings for the new reply.

thanks

Get Outlook for iOS
Joel Geraci
Community Expert
Joel GeraciCommunity ExpertCorrect answer
Community Expert
June 9, 2021

You can use any GUID or UUID generator for that.