def _api_config_set_nzbkey(output, kwargs):
 cfg.nzb_key.set(config.create_api_key())
 config.save_config()
 return report(output, keyword='nzbkey', data=cfg.nzb_key())

def _api_config_set_nzbkey ( output , kwargs ) : cfg . nzb_key . set ( config . create_api_key ( ) ) config . save_config ( ) return report ( output , keyword = 'nzbkey' , data = cfg . nzb_key ( ) )
api: accepts output .