Skip to content
Testsigma DOCS

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 →
profile_idID of the test data profile to add the value to.
keyThe parameter name (column header) in the data profile.
valueThe value to set for this entry.
isEncryptedSet to true to store the value encrypted (for passwords, secrets).
idID of the new profile data entry.
keyThe parameter name.
valueThe stored value.
isEncryptedWhether the value is encrypted.
testDataProfileIdID 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
}