ads_common/lib/ads_common/parameters_validator.rb
def rename_hash_key(data, old_key, new_key)
      data[new_key] = data.delete(old_key)
      return data
    end
def rename_hash_key(data, old_key, new_key)
      data[new_key] = data.delete(old_key)
      return data
    end
Replaces an item in an array with a different one into the same position.