def upsert(self, asset):
self.logger.info('<STR_LIT>', asset.asset_manager_id, asset.asset_id)<EOL>url = '<STR_LIT>' % (self.endpoint, asset.asset_manager_id)<EOL>response = self.session.post(url, json=asset.to_interface(), params={'<STR_LIT>': True})<EOL>if response.ok:<EOL><INDENT>self.logger.info('<STR_LIT>', asset.asset_manager_id,<EOL>asset.asset_id)<EOL>asset = json_to_asset(response.json())<EOL>return asset<EOL><DEDENT>else:<EOL><INDENT>self.logger.error(response.text)<EOL>response.raise_for_status()<EOL><DEDENT>
upsert only support upserting one asset at a time