import requests
url = "https://{FUSION HOST}/api/api-key"
payload = {
"id": "test-key-id",
"name": "test-key-name",
"roles": ["developer", "search"]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)