Create profile value
PATCH
/test_data/:profile_id/data
Base URL
https://app.testsigma.com/api/v1
Add a new key-value entry to an existing test data profile.
Authenticate with your API key as a
Bearer token in the
Authorization header. Generate a key →PATH PARAMETERS
profile_id | ID of the test data profile to add the value to. |
REQUEST BODY
key | The parameter name (column header) in the data profile. |
value | The value to set for this entry. |
isEncrypted | Set to true to store the value encrypted (for passwords, secrets). |
RESPONSE ATTRIBUTES
id | ID of the new profile data entry. |
key | The parameter name. |
value | The stored value. |
isEncrypted | Whether the value is encrypted. |
testDataProfileId | ID of the parent test data profile. |
REQUEST
curl -X PATCH \
'https://app.testsigma.com/api/v1/test_data/:profile_id/data' \
-H 'Authorization: Bearer <API_KEY>' \
-H 'Content-Type: application/json' \
-d '{
"key": "username",
"value": "testuser@example.com",
"isEncrypted": false
}'const response = await fetch('https://app.testsigma.com/api/v1/test_data/:profile_id/data', {
method: 'PATCH',
headers: {
'Authorization': 'Bearer <API_KEY>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"key": "username",
"value": "testuser@example.com",
"isEncrypted": false
})
});
const data = await response.json();import requests
response = requests.patch(
'https://app.testsigma.com/api/v1/test_data/:profile_id/data',
headers={
'Authorization': 'Bearer <API_KEY>',
'Content-Type': 'application/json'
},
json={
"key": "username",
"value": "testuser@example.com",
"isEncrypted": false
}
)
data = response.json()RESPONSE200OK
{
"id": 301,
"key": "username",
"value": "testuser@example.com",
"isEncrypted": false,
"testDataProfileId": 45,
"createdById": 9,
"createdDate": 1680100000000
}