3.2.5.5.1 Executing a Received UpdateEntity Request

In addition to the directives specified in Common Rules: Receiving Responses from Data Service Requests (section 3.1.5.1), Common Rules for Executing Received Insert, Update, or Delete Data Service Requests (section 3.2.5.2), and Executing a Received Update Request (section 3.2.5.5), the directives defined in this section apply when executing any received request of the UpdateEntity request type UpdateEntity Request (section 2.2.7.3.1).

If the request payload includes (re)binding information, the server MUST rebind the EntityType instance being updated to the existing entities specified in the request payload. A rebind request can be included in the request payload for each NavigationProperty defined on the associated EntityType.

If the entity represented in the request payload is an instance of an OpenEntityType, then the property values in the request payload, in addition to those that represent the values of declared properties on the OpenEntityType, MUST be treated as values of dynamic properties associated with the OpenEntityType instance being inserted.

An update MUST only be considered successful if the target EntityType instance's EDMSimpleType and ComplexType property values are updated (with the values specified in the request payload) and all rebind operations are completed successfully. If all requested updates are not completed, an error response code MUST be returned.