update detail api