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

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

Explorer ,
Jul 18, 2021 Jul 18, 2021

Copy link to clipboard

Copied

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.png

 

TOPICS
PDF Embed API

Views

355

Translate

Translate

Report

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

...

Votes

Translate

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

Copy link to clipboard

Copied

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!

 

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

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