Update max length of warehouse/update api func