def METHOD_NAME(admin, topic, data):
    url = "/api/v1/topics/%s" % topic["id"]
    r = admin.put(url, headers={"If-match": topic["etag"]}, data=data)
    assert r.status_code == 200
    return admin.get(url).data["topic"]