3.2.5.3.2 Executing a Received InsertLink Request

In addition to the directives specified in Common Rules for Receiving All Data Service Requests (section 3.2.5.1), Common Rules for Executing Received Insert, Update, or Delete Data Service Requests (section 3.2.5.2), and Executing a Received Insert Request (section 3.2.5.3), the directives defined in this section apply when executing an InsertLink request (section 2.2.7.1.2).

In OData 1.0 and OData 2.0, if the insert succeeds in full, the server MUST return a 204 (No Content) response code. In OData 3.0, the response MAY have a 201 response code, as specified in [RFC2616], if the UpdateLink response body includes the updated link. Then, the response will have a response body that is the same as the response body to a RetrieveLink request (section 2.2.7.2.9).