Update profile value
PATCH
/test_data/:profile_id/data/:entry_id
Base URL
https://app.testsigma.com/api/v1
Update an existing key-value entry in a 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. |
entry_id | ID of the specific data entry to update. |
REQUEST BODY
value | The new value to store. |
isEncrypted | Set to true to store the value encrypted. |
RESPONSE ATTRIBUTES
id | Entry ID. |
key | The parameter name (unchanged). |
value | The updated value. |
isEncrypted | Whether the value is encrypted. |
updatedDate | Epoch timestamp of the update. |
REQUEST
curl -X PATCH \
'https://app.testsigma.com/api/v1/test_data/:profile_id/data/:entry_id' \
-H 'Authorization: Bearer <API_KEY>' \
-H 'Content-Type: application/json' \
-d '{
"value": "updateduser@example.com",
"isEncrypted": false
}'const response = await fetch('https://app.testsigma.com/api/v1/test_data/:profile_id/data/:entry_id', {
method: 'PATCH',
headers: {
'Authorization': 'Bearer <API_KEY>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"value": "updateduser@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/:entry_id',
headers={
'Authorization': 'Bearer <API_KEY>',
'Content-Type': 'application/json'
},
json={
"value": "updateduser@example.com",
"isEncrypted": false
}
)
data = response.json()RESPONSE200OK
{
"id": 301,
"key": "username",
"value": "updateduser@example.com",
"isEncrypted": false,
"testDataProfileId": 45,
"updatedById": 9,
"updatedDate": 1680200000000
}