PATCH collection with ODATA -


using odata standard possible patch entity property collection sending new item? , result returned?

it like

patch persons/1/addresses {"city": "sf", "country": "us"}

what should return? person or address?

according odata v4 protocol, collection property treated unity, , not support partially update.

see update collection property

a successful put request edit url of collection property updates collection. message body must contain desired new value, formatted collection property according specified format. service must replace entire value value supplied in request body. since collection members have no individual identity, patch not supported collection properties.

you can need use put request in case, both request , response payloads should whole collection.


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -