Remove rows from an experiment.
Authentication
- API key:
Authorization: Bearer <API key>
Path Parameters
The ID of the experiment to remove rows from.
Request Body
{
"rows": [
"a27d9880d1654c11ac87c61281298b85",
"807f07a6e5c7456d88c2dc2a8561090f"
]
}
Examples
import requests
experiment_id = "experiment_id_123"
url = f"https://api.keywordsai.co/api/experiments/{experiment_id}/rows"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
}
data = {
"rows": [
"a27d9880d1654c11ac87c61281298b85"
]
}
response = requests.delete(url, headers=headers, json=data)
print(response.status_code)
Response