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

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/url-ab-tests/test_url_789" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Updated Landing Page Test",
    "min_sample_size": 200
  }'

Response Examples

{
  "test": {
    "id": "test_url_789",
    "name": "Updated Landing Page Test",
    "min_sample_size": 200,
    "status": "draft"
  }
}