Hi Chandan,

This is a valid use case for HTTP where PUT is idempotent and can be used
to create or update resources. In my opinion OData does not disallow this
use case. Because of the customer already exists the return code has to be
204 [1].

‹ Stephan

[1] 
http://www.odata.org/documentation/odata-v2-documentation/operations/#26_Up
dating_Entries


On 16.01.14 14:08, "V.A, Chandan" <chandan....@sap.com> wrote:

>Hello All,
>I have couple of doubts with respect to Deep insert.
>
>
>1)      Can we perform an HTTP Put on an Entity with inline entries that
>are yet to be created?
>Say I have a Customer entity "A" already created. Now I update the
>customer entity (HTTP Put) with inline entries for Sales Order "S" which
>is not yet created.
>
>2)      Can we perform an HTTP PUT on an Entity with inline entries that
>are already created?
>Say I have a customer entity "A" already created. Now I update the
>customer entity (HTTP PUT) with inline entries for Sales Order "S" which
>is already created.
>
>Is this a valid use case as per OData specification. Because I could not
>find details about this in OData specification. Can someone please
>clarify?
>
>Thanks,
>Kind Regards
>Chandan VA
>

Reply via email to