'update( self, trans, id, library_id, payload, **kwd )
* PUT /api/libraries/{library_id}/contents/{id}
create a ImplicitlyConvertedDatasetAssociation
.. seealso:: :class:`galaxy.model.ImplicitlyConvertedDatasetAssociation`
:type   id:         str
:param  id:         the encoded id of the library item to return
:type   library_id: str
:param  library_id: the encoded id of the library that contains this item
:type   payload:    dict
:param  payload:    dictionary structure containing::
\'converted_dataset_id\':
:rtype:     None
:returns:   None'

@web.expose_api
def update(self, trans, id, library_id, payload, **kwd):

    if ('converted_dataset_id' in payload):
        converted_id = payload.pop('converted_dataset_id')
        content = self.get_library_dataset(trans, id, check_ownership=False, check_accessible=False)
        content_conv = self.get_library_dataset(trans, converted_id, check_ownership=False, check_accessible=False)
        assoc = trans.app.model.ImplicitlyConvertedDatasetAssociation(parent=content.library_dataset_dataset_association, dataset=content_conv.library_dataset_dataset_association, file_type=content_conv.library_dataset_dataset_association.extension, metadata_safe=True)
        trans.sa_session.add(assoc)
        trans.sa_session.flush()
