implement relation creation in planning_controller to avoid API authentication.