feat(task): expose REST Api to create or update a task

related to CAM-2619