updating api settings