I am trying to instantiate an object and two child objects at the same time.
If I send the next JSON to the / user _objects resource, it will happily create the parent user_object and the associated user_object_attribute. The only problem is that I cannot extend the result set to include the new user_object_attribute attribute, so I really have the most uptodate user_object version, but I must then go and read from the OData service, that is, another server, get user_object_attributes attributes.
Upon returning, I have an identifier that will accurately transition into the child object user_object_attribute, but what if the child has another field on the server side, for example created_date? Then do I still need to click on the OData repository again?
Have I tried the correct $ expand query? $ expand = user_objects_attributes, and as long as the creation succeeds, I still do not return an extended result set.
Can anyone think if this is possible? Or is it because this is not because the only way to do this is to return all child user_object_attributes?
{ "annotator_id":1, "content_type":"content_type", "created_date":"2013-02-15T17:20:09.191", "guid":"GUID", "size_kb":100, "title":"Title", "updated_date":null, "url":"URL", "user_object_id":0, "user_objects_attributes":[ { "attribute_id":0, "name":"name191", "user_object_id":0, "value":"value191" } ] }
Thanks Mark.