Assume new object is being created and POST instead of PUT if no id.