Add docstring for update endpoint