Swbase.set_managed: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/swbase.bend as Swbase Lines 89-93 of cswap-bend-cli@0.1.0.0/swbase.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/swbase.bend&start_line=89&end_line=93 import Base import cswap-bend-cli@0.1.0.0/json.bend as Json # A managed API key goes in as primaryApiKey and is approved by its last 20 # characters (credentials.py _write_managed_credentials, file backend). def set_managed(+cfg: Json.Json, +key: String) -> Json.Json: Json.set("primaryApiKey", Json.JStr{String.trim(key)}, Json.set("customApiKeyResponses", managed_responses(responses_of(cfg), approved_form(key)), cfg)) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.trim https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/json.bend&name=Json https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/json.bend&name=set https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/swbase.bend&name=approved_form https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/swbase.bend&name=managed_responses https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/swbase.bend&name=responses_of