update cortex endpoint