Update Document REST API - how to merge attributes instead of replacing all? #6079
Unanswered
sp88011
asked this question in
Questions & Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm playing around with the REST API, specifically the "Update document endpoint", see Postman.
The default behavior when updating attributes for one/or more nodes is that the
attrs
object we pass to the server will replace all the existing attributes.Is there a way to merge attributes instead? Basically only replace attributes that we pass to the endpoint while keeping all others in place?
I could work around it by fetching all existing attributes first before updating them, but it doesn't seem possible to fetch specific nodes. I would have to fetch the whole document and then go from there which seems burdensome for such a simple operation.
Beta Was this translation helpful? Give feedback.
All reactions