curl --request PATCH \
--url https://api.galtea.ai/tests/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Quality Test (renamed)",
"metadata": {
"key": "value"
},
"specificationIds": [
"spec_123"
]
}
'import requests
url = "https://api.galtea.ai/tests/{id}"
payload = {
"name": "Quality Test (renamed)",
"metadata": { "key": "value" },
"specificationIds": ["spec_123"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Quality Test (renamed)',
metadata: {key: 'value'},
specificationIds: ['spec_123']
})
};
fetch('https://api.galtea.ai/tests/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.galtea.ai/tests/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Quality Test (renamed)',
'metadata' => [
'key' => 'value'
],
'specificationIds' => [
'spec_123'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.galtea.ai/tests/{id}"
payload := strings.NewReader("{\n \"name\": \"Quality Test (renamed)\",\n \"metadata\": {\n \"key\": \"value\"\n },\n \"specificationIds\": [\n \"spec_123\"\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.galtea.ai/tests/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Quality Test (renamed)\",\n \"metadata\": {\n \"key\": \"value\"\n },\n \"specificationIds\": [\n \"spec_123\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.galtea.ai/tests/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Quality Test (renamed)\",\n \"metadata\": {\n \"key\": \"value\"\n },\n \"specificationIds\": [\n \"spec_123\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "test_123",
"productId": "prod_123",
"userId": "user_123",
"name": "Quality Test",
"type": "QUALITY",
"models": [
"gpt-4",
"claude-3"
],
"groundTruthUri": "https://files.galtea.ai/tests/test_123/ground-truth.csv",
"uri": "https://files.galtea.ai/tests/test_123/test.csv",
"error": "<string>",
"status": "SUCCESS",
"fewShot": "Example few-shot learning data",
"languageCode": "es-MX",
"backgroundNoiseProfile": "street",
"backgroundNoiseLevel": "medium",
"variants": [
"rag",
"summarization"
],
"customVariantDescription": "Custom variant description",
"strategies": [
"original"
],
"customUserPersona": "Business analyst",
"maxTestCases": 100,
"sourceTestId": "<string>",
"dataCatalogUri": "https://files.galtea.ai/tests/test_123/data-catalog.json",
"metadata": {
"key": "value"
},
"specificationIds": [
"spec_123"
],
"specificationId": "spec_123",
"isExtendable": true,
"createdAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z"
}{
"error": "Error type",
"message": "Error message description"
}{
"error": "Error type",
"message": "Error message description"
}{
"error": "Error type",
"message": "Error message description"
}{
"error": "Error type",
"message": "Error message description"
}Update dataset
Apply a partial update to an existing dataset. See Datasets.
Only name, metadata and specificationIds are mutable post-creation. Attempting to update any other field (type, variants, strategies, uri, groundTruthUri, dataCatalogUri, sourceTestId, maxTestCases, etc.) returns a 400. Those are fixed for the lifetime of the dataset because they drive generation, credit accounting, and stored test-case shape.
specificationIds replaces the dataset’s specification links with the full list sent. Leaving it out keeps the links, and [] removes them all. Each added specification must be a POLICY or CAPABILITY specification of the same product whose testType is the dataset’s type, and the caller needs update permission on each specification added or removed. specifications link-datasets / specifications unlink-datasets add or remove one link set without replacing the others.
curl --request PATCH \
--url https://api.galtea.ai/tests/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Quality Test (renamed)",
"metadata": {
"key": "value"
},
"specificationIds": [
"spec_123"
]
}
'import requests
url = "https://api.galtea.ai/tests/{id}"
payload = {
"name": "Quality Test (renamed)",
"metadata": { "key": "value" },
"specificationIds": ["spec_123"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Quality Test (renamed)',
metadata: {key: 'value'},
specificationIds: ['spec_123']
})
};
fetch('https://api.galtea.ai/tests/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.galtea.ai/tests/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Quality Test (renamed)',
'metadata' => [
'key' => 'value'
],
'specificationIds' => [
'spec_123'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.galtea.ai/tests/{id}"
payload := strings.NewReader("{\n \"name\": \"Quality Test (renamed)\",\n \"metadata\": {\n \"key\": \"value\"\n },\n \"specificationIds\": [\n \"spec_123\"\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.galtea.ai/tests/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Quality Test (renamed)\",\n \"metadata\": {\n \"key\": \"value\"\n },\n \"specificationIds\": [\n \"spec_123\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.galtea.ai/tests/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Quality Test (renamed)\",\n \"metadata\": {\n \"key\": \"value\"\n },\n \"specificationIds\": [\n \"spec_123\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "test_123",
"productId": "prod_123",
"userId": "user_123",
"name": "Quality Test",
"type": "QUALITY",
"models": [
"gpt-4",
"claude-3"
],
"groundTruthUri": "https://files.galtea.ai/tests/test_123/ground-truth.csv",
"uri": "https://files.galtea.ai/tests/test_123/test.csv",
"error": "<string>",
"status": "SUCCESS",
"fewShot": "Example few-shot learning data",
"languageCode": "es-MX",
"backgroundNoiseProfile": "street",
"backgroundNoiseLevel": "medium",
"variants": [
"rag",
"summarization"
],
"customVariantDescription": "Custom variant description",
"strategies": [
"original"
],
"customUserPersona": "Business analyst",
"maxTestCases": 100,
"sourceTestId": "<string>",
"dataCatalogUri": "https://files.galtea.ai/tests/test_123/data-catalog.json",
"metadata": {
"key": "value"
},
"specificationIds": [
"spec_123"
],
"specificationId": "spec_123",
"isExtendable": true,
"createdAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z"
}{
"error": "Error type",
"message": "Error message description"
}{
"error": "Error type",
"message": "Error message description"
}{
"error": "Error type",
"message": "Error message description"
}{
"error": "Error type",
"message": "Error message description"
}Authorizations
Headers
Body
Response
Dataset updated successfully. The body is the resource as its GET answers it.
Storage URI of the ground-truth file, derived from the presigned URL supplied at creation. Returned as <STORAGE_PUBLIC_BASE_URL>/<key> when the deployment configures a public file base, otherwise in its stored form. S3: s3://<bucket>/<key>. Azure Blob: blob URL with the SAS query stripped (e.g. https://<account>.blob.core.windows.net/<container>/<path>). Either form resolves through GET /storage/generate-get-presigned-url.
"https://files.galtea.ai/tests/test_123/ground-truth.csv"
BCP-47 language tag (e.g. en, es-MX). The region subtag selects the regional variety in simulated user messages and voice synthesis; generated test text keeps the base language. The value is stored as the full tag. A bare code for ca, de, es, eu, fr, gl, it, nl or pt defaults to the European variety of that language, in simulated user messages only (pt -> pt-PT); an explicit region always overrides it, and neither voice synthesis nor the stored value is affected.
"es-MX"
Background noise mixed into the simulated caller audio during a voice test. Clip-backed (office, street, car) or synthetic (white, pink). Null means off; set together with backgroundNoiseLevel.
office, street, car, white, pink, null "street"