API to dynamically update values in dropdown field