import requests
testset_id = "testset_id_123"
url = f"https://api.keywordsai.co/api/testsets/{testset_id}"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
}
data = {
"name": "Updated Test API Dataset",
"description": "Updated description for the dataset"
}
response = requests.patch(url, headers=headers, json=data)
print(response.json())