Update profile value
PATCH
/test_data/{id}Base URL
https://app.testsigma.com/api/v1RegionUpdate values in a test data profile using the REST API.
Authenticate with your API key as a
Bearer token in the Authorization header. How to authenticate →Path parameters
id | ID of the test data profile. |
Request body
id | ID of the test data profile. |
testDataName | Name of the test data profile. |
testData | Legacy inline test data; set to null when using the data array. |
data | Array of data set objects to update in the profile. |
data[].name | Name of the data set (iteration). |
data[].expectedToFail | Whether the iteration is expected to fail. |
data[].data | Key-value map of parameter names to values for the iteration. |
Response attributes
id | ID of the test data profile. |
testDataName | Name of the test data profile. |
data | Inline data payload; null when data sets are stored. |
createdById | ID of the user who created the profile. |
updatedById | ID of the user who last updated the profile. |
columns | Array of parameter (column) names in the profile. |
createdDate | Creation timestamp (epoch milliseconds). |
updatedDate | Last update timestamp (epoch milliseconds). |
passwords | Encrypted password columns, if any. |
versionId | Version ID of the test data profile. |
message | Status message, if any. |
Request
curl -X PATCH \
'https://app.testsigma.com/api/v1/test_data/{id}' \
-H 'Authorization: Bearer <API_KEY>' \
-H 'Content-Type: application/json' \
-d '{
"id": 48,
"testDataName": "update parameter with api call",
"testData": null,
"data": [
{
"name": "Iteration name",
"expectedToFail": true,
"data": {
"Username": "bhanu",
"Password": "7893",
"User1": "bsk@450.com",
"User2": "1479",
"User3": "bhanuprakash"
}
}
]
}'const response = await fetch('https://app.testsigma.com/api/v1/test_data/{id}', {
method: 'PATCH',
headers: {
'Authorization': 'Bearer <API_KEY>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"id": 48,
"testDataName": "update parameter with api call",
"testData": null,
"data": [
{
"name": "Iteration name",
"expectedToFail": true,
"data": {
"Username": "bhanu",
"Password": "7893",
"User1": "bsk@450.com",
"User2": "1479",
"User3": "bhanuprakash"
}
}
]
})
});
const data = await response.json();import requests
response = requests.patch(
'https://app.testsigma.com/api/v1/test_data/{id}',
headers={
'Authorization': 'Bearer <API_KEY>',
'Content-Type': 'application/json'
},
json={
"id": 48,
"testDataName": "update parameter with api call",
"testData": null,
"data": [
{
"name": "Iteration name",
"expectedToFail": true,
"data": {
"Username": "bhanu",
"Password": "7893",
"User1": "bsk@450.com",
"User2": "1479",
"User3": "bhanuprakash"
}
}
]
}
)
data = response.json()Response200 OK
{
"id": 48,
"testDataName": "update",
"data": null,
"createdById": 9,
"updatedById": 14,
"columns": [
"User2",
"Username",
"User1",
"User3",
"Password"
],
"createdDate": 1677479567000,
"updatedDate": 1677492944204,
"passwords": null,
"versionId": 46,
"message": null
}Was this page helpful?
Thanks for the feedback.