enable association via api

(cherry picked from commit f3a152785cec7ad9a7abb237bdff03a302910057)