async def METHOD_NAME(rest_api, metadata_store):
    """
    Test updating a metadata entry with REST API
    """
    new_title = 'bla2'
    new_tags = "Compressed"
    with db_session:
        chan = metadata_store.ChannelMetadata.create_channel(title="bla")
        chan.status = COMMITTED
    patch_params = {'title': new_title, 'tags': new_tags}
    result = await do_request(
        rest_api,
        'metadata/%s/%i' % (hexlify(chan.public_key), chan.id_),
        request_type='PATCH',
        post_data=patch_params,
        expected_code=200,
    )
    assert new_title == result['name']
    assert new_tags == result['category']
    with db_session:
        chan = metadata_store.ChannelMetadata.get_my_channels().first()
        assert chan.status == UPDATED
        assert chan.tags == new_tags
        assert chan.title == new_title