def synch(self, asset_manager_id):
self.logger.info('<STR_LIT>')<EOL>url = '<STR_LIT>' % (self.endpoint, asset_manager_id)<EOL>response = self.session.put(url)<EOL>if response.ok:<EOL><INDENT>count = response.json().get('<STR_LIT:count>', <NUM_LIT:0>)<EOL>self.logger.info('<STR_LIT>', count)<EOL>return count<EOL><DEDENT>else:<EOL><INDENT>self.logger.error(response.text)<EOL>response.raise_for_status()<EOL><DEDENT>
This method invokes a request to synch the parties in
elastic search with the SQL parties.

Args:
    asset_manager_id (int): The id of the asset manager that owns the parties to be synched

Returns:
    int: the number of parties synched.