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:
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
...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!
Copy link to clipboard
Copied
I understand but why do i get an error if i update the annotation with same body & strokecolor values.
Copy link to clipboard
Copied
API will give this error if you don't send any updated values in these fields.
Copy link to clipboard
Copied
It also happens if i send an existing annotation with no change in it. (identicle annotation object)