PUT
https://jmpy.me/api/v1
/
qr-ab-tests
/
{testId}
Update QR A/B Test
curl --request PUT \
  --url https://jmpy.me/api/v1/qr-ab-tests/{testId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "min_sample_size": 123,
  "confidence_level": 123
}
'
{
  "test": {
    "id": "test_987654321",
    "name": "Updated Menu Test",
    "min_sample_size": 500,
    "status": "draft"
  }
}
Modify the configuration of a draft A/B test. Running or completed tests cannot be modified to ensure data integrity.

Path Parameters

testId
string
required
The UUID of the A/B test.

Body Parameters

name
string
New name for the test.
description
string
New description.
min_sample_size
number
Update the minimum sample size required for significance.
confidence_level
number
Update target confidence level.

Request Examples

curl -X PUT https://jmpy.me/api/v1/qr-ab-tests/test_987654321 \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Updated Menu Test",
    "min_sample_size": 500
  }'
{
  "test": {
    "id": "test_987654321",
    "name": "Updated Menu Test",
    "min_sample_size": 500,
    "status": "draft"
  }
}