import requests
url = "https://platform.ankra.app/api/v1/clusters/hetzner/{cluster_id}/node-groups/{group_name}/taints"
payload = { "taints": [
{
"key": "<string>",
"effect": "NoSchedule",
"value": ""
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)