@transactional<EOL><INDENT>def update(self, params, args, data):<EOL><DEDENT>
ctx = self._create_context(params, args, data)<EOL>row_id = ctx.get_row_id()<EOL>if row_id is not None:<EOL><INDENT>model = self._update_one(ctx)<EOL>return None if model is None else model.get_app_model()<EOL><DEDENT>else:<EOL><INDENT>return app_models(self._update_collection(ctx))<EOL><DEDENT>
PUT /resource/model_cls/[params:id]
data

Update resource/s