def METHOD_NAME(client, world):
    assert not world.config["pretalx"].get("connected")
    world.config["pretalx"]["domain"] = "https://pretalx.dev"
    world.config["pretalx"]["event"] = "demofon"
    world.save()
    r = client.post(
        "/api/v1/worlds/sample/schedule_update",
        {
            "domain": "https://pretalx.dev",
            "event": "demofon",
        },
        format="json",
        HTTP_AUTHORIZATION=get_token_header(world, ["foobartrait", "admin", "api"]),
    )
    assert r.status_code == 200
    world.refresh_from_db()
    assert world.config["pretalx"]["domain"] == "https://pretalx.dev"
    assert world.config["pretalx"]["event"] == "demofon"
    assert world.config["pretalx"]["connected"] is True