Skip to content
Testsigma DOCS

Update a test data profile

POST/test_data/upload

Base URL  https://app.testsigma.com/api/v1

Update an existing test data profile by uploading a new XLSX file in Testsigma using the REST API.

Authenticate with your API key as a Bearer token in the Authorization header. Generate a key →
fileThe local file to upload (multipart file part), e.g. @"<local_path>". An XLS/XLSX file.
encryptedColumnsColumns to encrypt. Use "," to separate multiple column names.
applicationVersionIdID of the application version where the file is to be uploaded.
nameName of the test data profile to update.
notificationEmailEmail address to notify once the update completes.
idID of the updated test data profile.
testDataNameName of the test data profile.
testDataTest data payload (null in this response).
dataData payload (null in this response).
createdByIdUser ID of the creator.
updatedByIdUser ID of the updater.
columnsColumns being updated in the test data profile.
createdDateEpoch timestamp when the profile was created.
updatedDateEpoch timestamp when the profile was last updated.
passwordsEncrypted password values (null in this response).
versionIdID of the application version the file was uploaded to.
isMigratedWhether the profile was migrated.
messageStatus message for the update operation.
REQUEST
curl -X POST \
  'https://app.testsigma.com/api/v1/test_data/upload' \
  -H 'Authorization: Bearer <API_KEY>' \
  -F 'file=@<local_path>' \
  -F 'encryptedColumns=Password' \
  -F 'applicationVersionId=10' \
  -F 'name=TestData01' \
  -F 'notificationEmail=example@testsigma.com'
const form = new FormData();
form.append('file', fileInput.files[0]);
form.append('encryptedColumns', 'Password');
form.append('applicationVersionId', '10');
form.append('name', 'TestData01');
form.append('notificationEmail', 'example@testsigma.com');

const response = await fetch('https://app.testsigma.com/api/v1/test_data/upload', {
  method: 'POST',
  headers: { 'Authorization': 'Bearer <API_KEY>' },
  body: form
});
const data = await response.json();
import requests

response = requests.post(
  'https://app.testsigma.com/api/v1/test_data/upload',
  headers={ 'Authorization': 'Bearer <API_KEY>' },
  data={
    'encryptedColumns': 'Password',
    'applicationVersionId': '10',
    'name': 'TestData01',
    'notificationEmail': 'example@testsigma.com'
  },
  files={
    'file': open('<local_path>', 'rb')
  }
)
data = response.json()
RESPONSE200OK
{
  "id": 77,
  "testDataName": "TD01",
  "testData": null,
  "data": null,
  "createdById": 9,
  "updatedById": 9,
  "columns": [
    "description",
    "city",
    "man"
  ],
  "createdDate": 1669806346000,
  "updatedDate": 1669806369000,
  "passwords": null,
  "versionId": 69,
  "isMigrated": true,
  "message": "We will send an email once the Test data profile is created successfully."
}