Skip to main content
POST
Register an attachment of the experiment on a host surface Called by the host surface (workflow, content, loop) when a version referencing the experiment is written. One entry per resource however many of its branches (nodes, condition groups) reference the experiment, idempotent on `(surface, resourceId)`: a replay is a no-op. A new attachment needs ready, scheduled or live, unless sourceResourceId names a registered resource of the same surface. Draft and archived experiments cannot receive copies. Once attached, the variant set is locked and back-to-draft / archive are held until every attachment is removed.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

id
string
required
Pattern: ^[0-9a-fA-F]{24}$

Body

application/json
surface
required
Available options:
workflow
resourceId
string
required
Minimum string length: 1
sourceResourceId
string

Resource this one was copied from. Its being registered lets the copy attach after normal attachability ends.

Minimum string length: 1

Response

Ok

status
enum<string>
required
Available options:
success
program
string
required
version
string
required
datetime
string
required
message
string
required
data
object
required
code
number