Skip to main content
PATCH
/
experiments
/
{experiment_id}
Partially update an experiment
curl --request PATCH \
  --url https://api.qonversion.io/v4/experiments/{experiment_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "alias_id": "<string>",
  "description": "<string>",
  "segment_percent": 123,
  "primary_metric": "<string>",
  "goal_value": 123,
  "goal_direction": "<string>",
  "context_key": "<string>",
  "is_context_specific": true
}
'
{
  "object": "experiment",
  "id": "<string>",
  "url": "<string>",
  "name": "<string>",
  "alias_id": "paywall_ab_test_v3",
  "description": "<string>",
  "status": "<string>",
  "started_at": "2023-11-07T05:31:56Z",
  "finished_at": "2023-11-07T05:31:56Z",
  "segment_percent": 123,
  "primary_metric": "<string>",
  "goal_value": 123,
  "goal_direction": "<string>",
  "context_key": "<string>",
  "is_context_specific": true,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Documentation Index

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

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

Authorizations

Authorization
string
header
required

Bearer authentication using the project Secret Key (prefixed with sk_, or test_sk_ for sandbox). All v4 public endpoints require the Secret Key — see Authentication. Never expose the Secret Key in client-side code.

Path Parameters

experiment_id
string
required

Experiment identifier.

Maximum string length: 256
Pattern: ^[a-zA-Z0-9._-]+$

Body

application/json

All fields optional. Only provided fields are updated.

name
string

Experiment display name.

alias_id
string

Stable identifier for the experiment. Max 64 characters.

Maximum string length: 64
Pattern: ^[a-zA-Z0-9._-]+$
description
string | null

Experiment description.

segment_percent
number | null

Percentage of users to include.

primary_metric
string | null
goal_value
number | null
goal_direction
string | null
context_key
string | null
is_context_specific
boolean | null

Response

Updated experiment.

object
string
Example:

"experiment"

id
string

Experiment identifier (server-generated UID).

url
string

Canonical API path.

name
string

Experiment display name.

alias_id
string

User-facing stable identifier (supplied on POST, immutable after). Added in the DEV-777 response audit; was missing from the public envelope despite being accepted on create.

Example:

"paywall_ab_test_v3"

description
string

Experiment description.

status
string

Current experiment status.

started_at
string<date-time> | null

ISO 8601 timestamp when the experiment was started.

finished_at
string<date-time> | null

ISO 8601 timestamp when the experiment was finished.

segment_percent
number | null

Percentage of users included in the experiment.

primary_metric
string | null

Primary success metric. Legacy experiments created before the underscore naming may return hyphenated variants (e.g. user-to-trial, subscription-cancellation); treat them as read-only and migrate to the underscore form before sending them back on PATCH.

goal_value
number | null

Target value for the primary metric.

goal_direction
string | null

Desired direction of change for the primary metric.

context_key
string

Context key for context-specific experiments.

is_context_specific
boolean

Whether this experiment is restricted to a specific context.

created_at
string<date-time>

ISO 8601 creation timestamp.

updated_at
string<date-time>

ISO 8601 last update timestamp.