# Require API Key to run readApiKey() { echo -n "Enter your API Key: " read apiKey; if [ -z "$apiKey" ] then echo "Input cannot be null"; readApiKey; else apiCall; fi } # API call example apiCall() { curl \ -X 'PUT' \ -H 'Content-Type: application/json' \ -H 'Accept: application/json' \ -H "x-api-key: ${apiKey}" \ -d '{ "attributes" : [ { "name" : "attributename1", "value" : "attributesvalue1" }] }' \ "https://console.jumpcloud.com/api/systemusers/:id" } readApiKey