endpoints: use entry input struct instead of redefining it
endpoints_test: add a check to ensure we cant update an entry if we arent its owner