fix constant names for api endpoint