How to select entity properties to return when creating a record via OData (or prevent newly created object from being returned)?
When creating an entity record via OData the entire entity object is returned in the response. There are times when this is not needed and having this returned every time can add a lot of unneeded size/time to the response.
Is there any way to tell the OData API to *not* return the created object? Or at least be able to limit the fields returned instead of everything? I tried adding a $select to the request, but that seems to be ignored. I have a lot of records to create via OData and it would be great to reduce the size of the payload retuned in the response.
Additional info: I am using JSON for my requests and I do have an Accept header value of "application/json;odata=verbose”. Not sure if the "verbose" is telling to to return the entire object, what other choices there are here besides verbose? I've tried "minimal" and a few other things but it just causes an UnsupportedMediaType response. I also tried adding a Prefer header with "return=minimal" (with no luck) per the Odata specs.