added jsonapi support for updating model objects