Given an API response containing nested JSON data, extract specific configuration values and format them into a YAML file.