add update and delete endpoints