Added support for direction and plandEndDate in class assign API