Skip to main content
PUT
/
experiments
/
api
/
{uid}
Update experiment
curl --request PUT \
  --url https://api.pictify.io/experiments/api/{uid} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "slug": "<string>",
  "variants": [
    {
      "id": "variant-a",
      "weight": 5000,
      "name": "New Design",
      "templateUid": "<string>",
      "variables": {},
      "isDefault": false,
      "conditions": {
        "children": "<array>",
        "property": "<string>",
        "value": "<unknown>"
      },
      "schedule": {
        "startAt": "2023-11-07T05:31:56Z",
        "endAt": "2023-11-07T05:31:56Z",
        "recurrence": {
          "type": "none",
          "cronExpression": "<string>",
          "timezone": "America/New_York"
        }
      }
    }
  ],
  "goalConfig": {},
  "banditConfig": {},
  "hypothesis": "<string>",
  "confidenceThreshold": 123,
  "minimumRunDays": 123,
  "outputConfig": {},
  "fallbackImageUrl": "<string>"
}
'
{
  "experiment": {
    "uid": "exp_abc123",
    "slug": "homepage-hero-test",
    "name": "Homepage Hero A/B Test",
    "variants": [
      {
        "id": "variant-a",
        "weight": 5000,
        "name": "New Design",
        "templateUid": "<string>",
        "variables": {},
        "isDefault": false,
        "conditions": {
          "children": "<array>",
          "property": "<string>",
          "value": "<unknown>"
        },
        "schedule": {
          "startAt": "2023-11-07T05:31:56Z",
          "endAt": "2023-11-07T05:31:56Z",
          "recurrence": {
            "type": "none",
            "cronExpression": "<string>",
            "timezone": "America/New_York"
          }
        },
        "impressions": 123,
        "clicks": 123
      }
    ],
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "templateUid": "tmpl_xyz789",
    "goalConfig": {
      "type": "impressions_only",
      "destinationUrl": "<string>"
    },
    "banditConfig": {
      "enabled": false,
      "algorithm": "thompson_sampling",
      "warmupImpressions": 50,
      "recomputeIntervalMinutes": 15
    },
    "hypothesis": "<string>",
    "minimumSampleSize": 1000,
    "confidenceThreshold": 0.95,
    "minimumRunDays": 7,
    "winnerVariantId": "<string>",
    "winnerDeclaredAt": "2023-11-07T05:31:56Z",
    "fallbackImageUrl": "<string>",
    "outputConfig": {
      "format": "png",
      "quality": 90
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.pictify.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key obtained from the Pictify dashboard

Path Parameters

uid
string
required

Body

application/json
name
string
Maximum string length: 255
slug
string
variants
object[]
goalConfig
object
banditConfig
object
hypothesis
string
confidenceThreshold
number
minimumRunDays
integer
outputConfig
object
fallbackImageUrl
string<uri>

Response

Experiment updated

experiment
object