3.1.5.2 Responses from Insert Requests

In addition to the common response processing rules in Common Rules: Receiving Responses from Data Service Requests (section 3.1.5.1), the client MUST interpret the response body of a response to an Insert request in Insert Request Types (section 2.2.7.1) as containing the most recent values (as known to the client) for the inserted entity. Such behavior allows a data service to alter the data (by using, for example, data service specific validation rules) it received in an Insert Request and reflect the alterations back to the client.

As specified in [RFC5023], the client MUST use the URI returned in the Location response header as the request URI in subsequent requests to the entity.

In OData 3.0, it is possible for the client to express the preference of receiving no response to an insert request (see Prefer (section 2.2.5.9)). In this case, the data service alters the data it received in an Insert request and the alterations are not reflected back to the client.