integrated the assign pathway api