change endpoints api