{ "name": "Updated Test API Dataset", "starred": false, "description": "Updated description for the dataset" }
{ "id": "testset_id_123", "name": "Updated Test API Dataset", "description": "Updated description for the dataset" }
Documentation IndexFetch the complete documentation index at: https://docs.keywordsai.co/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://docs.keywordsai.co/llms.txt
Use this file to discover all available pages before exploring further.
Authorization: Bearer <API key>
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())
Was this page helpful?