Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

FAIL: No updated allowed field found in annotation for given id 6497a0bf-b4ee-8d5b-8fh8-b9985989a91

Explorer ,
Jul 18, 2021 Jul 18, 2021

Hi all,

I get this error when trying to update an annotation. I didn't change the user profile in between.

Any idea?

This is the object i send to the update func:

Alon5FCD_0-1626605985733.pngexpand image

 

TOPICS
PDF Embed API
637
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , Jul 19, 2021 Jul 19, 2021

bodyValue and strokeColor are the only two fields which can be updated for highlight annotations; updating other fields is not allowed. Your JSON object should contain the updated values of these fields when you call the updateAnnotation API. If the API detects that there is no updated value, then it shows this error.

 

For more details, please see the section Comments and Markup -> Basic APIs for commenting, in the documentation. You can also view the working code sample here.

 

Hope this helps

...
Translate
Adobe Employee ,
Jul 19, 2021 Jul 19, 2021

bodyValue and strokeColor are the only two fields which can be updated for highlight annotations; updating other fields is not allowed. Your JSON object should contain the updated values of these fields when you call the updateAnnotation API. If the API detects that there is no updated value, then it shows this error.

 

For more details, please see the section Comments and Markup -> Basic APIs for commenting, in the documentation. You can also view the working code sample here.

 

Hope this helps!

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 30, 2021 Aug 30, 2021

I understand but why do i get an error if i update the annotation with same body & strokecolor values.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Aug 31, 2021 Aug 31, 2021

API will give this error if you don't send any updated values in these fields.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 31, 2021 Aug 31, 2021
LATEST

It also happens if i send an existing annotation with no change in it. (identicle annotation object)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources