Add endpoint for update