Skip to content
Testsigma DOCS

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 →
profile_idID of the test data profile.
entry_idID of the specific data entry to update.
valueThe new value to store.
isEncryptedSet to true to store the value encrypted.
idEntry ID.
keyThe parameter name (unchanged).
valueThe updated value.
isEncryptedWhether the value is encrypted.
updatedDateEpoch 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
}