Saltar al contenido principal
POST
Archive plan experiment
Stop selling the experiment. Its code sells the plan’s current version from then on, so links already shared keep working. Choose what happens to its subscribers: keep them on its versions, or move them to the current version at their renewal or now. If any of them does not fit, nothing changes and the response lists each one with what would make it fit, to send back in changes.

Autorizaciones

x-api-key
string
header
requerido

Encabezados

Idempotency-Key
string

Unique key used to safely retry this write for 24 hours without applying it twice.

Required string length: 1 - 200
Commet-Version
string
predeterminado:2026-08-27

API version used by this reference. Send this header to select this contract explicitly.

Parámetros de ruta

id
string
requerido
code
string
requerido

The experiment's own code, without the plan code: price-test.

Cuerpo

application/json
subscribers
enum<string>
predeterminado:keep

What happens to the experiment's subscribers: keep them on its versions, move them to the plan's current version at their next renewal, or move them now. Nobody moves, and the experiment keeps running, unless every one of them fits or has a change.

Opciones disponibles:
keep,
period_end,
now
changes
object[]

Per-subscriber changes that make each one fit, applied at its renewal.

preview
boolean
predeterminado:false

Check the archive and the move without changing anything.

Respuesta

Success

experiment
object
requerido
moveId
string | null
requerido

The move of its subscribers, or null when they stay.

object
string
requerido
Allowed value: "plan_experiment_archive"
livemode
boolean
requerido