import requests
key_id = 1
response = requests.patch(
f"https://api.naga.ac/v1/account/keys/{key_id}",
headers={
"Authorization": "Bearer YOUR_PROVISIONING_KEY",
"Content-Type": "application/json",
},
json={
"name": "Updated Production Key",
"is_enabled": False,
"credit_limit": 200.00,
},
)
updated_key = response.json()
print(updated_key)