experiments
POST
https://lucidace.com /v1/projects/{project_id}/experiments/{id}/unarchive Scope experiment:writeParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/experiments/{id}/unarchive"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"audience": {},
"conclusion": "string",
"created_at": "2024-01-01T00:00:00Z",
"created_by": "string",
"ended_at": "2024-01-01T00:00:00Z",
"exposure": {},
"flag_id": "string",
"flag_key": "string",
"guardrail_state": {},
"holdout_id": "string",
"hypothesis": "string",
"id": "string",
"kind": "string",
"metrics": {},
"name": "string",
"namespace_id": "string",
"project_id": "string",
"requires_approval": true,
"schedule": {},
"shipped_at": "2024-01-01T00:00:00Z",
"snapshot": {},
"started_at": "2024-01-01T00:00:00Z",
"stats_config": {},
"status": "string",
"traffic_pct": 0,
"updated_at": "2024-01-01T00:00:00Z",
"variants": {},
"winner": "string"
}Schema
audienceobjectrequiredconclusionstringcreated_atstringrequiredcreated_bystringended_atstringexposureobjectrequiredflag_idstringrequiredflag_keystringKey of the flag
flag_id names; null only if that flag row is gone.guardrail_stateobjectrequiredholdout_idstringhypothesisstringrequiredidstringrequiredkindstringrequiredmetricsobjectrequired{primary: [metric id], secondary: [...], guardrail: [{metric, direction?}]}.namestringrequirednamespace_idstringproject_idstringrequiredrequires_approvalbooleanrequiredscheduleobjectrequiredshipped_atstringsnapshotobjectstarted_atstringstats_configobjectrequiredstatusstringrequiredtraffic_pctnumberrequiredupdated_atstringrequiredvariantsobjectrequiredwinnerstring404
409
PATCH
https://lucidace.com /v1/projects/{project_id}/experiments/{id}/variants/{key} Renames a variant's display name at any status (also running, stopped and archived). The variant `key` stays immutable, so exposures, results and history stay joined; the rename is audited.
Parameters
project_idstringpathrequiredidstringpathrequiredkeystringpathrequiredRequest body
application/json
namestringrequiredDisplay name, 1 to 200 characters.
{
"name": "string"
}Code samples
cURL
curl -X PATCH "https://lucidace.com/v1/projects/{project_id}/experiments/{id}/variants/{key}" \
-H "Content-Type: application/json" \
-d '{"name":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
POST
https://lucidace.com /v1/projects/{project_id}/experiments/{id}/variants/{variant}/cohort Scope cohort:writeParameters
project_idstringpathrequiredidstringpathrequiredvariantstringpathrequiredCode samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/experiments/{id}/variants/{variant}/cohort"TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 A static cohort of the units first exposed to the variant
Example
{
"created_at": "2024-01-01T00:00:00Z",
"created_by": "string",
"description": "string",
"filters": {},
"id": "string",
"kind": "string",
"last_computed_at": "2024-01-01T00:00:00Z",
"last_error": "string",
"member_count": 0,
"name": "string",
"realtime": true,
"status": "string",
"updated_at": "2024-01-01T00:00:00Z",
"version": 0
}Schema
created_atstringrequiredcreated_bystringdescriptionstringrequiredfiltersobjectrequiredDynamic: the
lc-cohort definition tree. Static: {}.idstringrequiredkindstringrequiredstatic | dynamic.last_computed_atstringlast_errorstringmember_countintegernamestringrequiredrealtimebooleanrequiredDynamic cohorts: members are also added from the event stream as they qualify (G181).
statusstringrequiredpending | calculating | ready | error.updated_atstringrequiredversionintegerrequiredBumped on every definition change.
404
503
GET
https://lucidace.com /v1/projects/{project_id}/experiments/{id}/variants/{variant}/screenshot Scope experiment:readParameters
project_idstringpathrequiredidstringpathrequiredvariantstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/experiments/{id}/variants/{variant}/screenshot"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 the variant screenshot (PNG or JPEG)
404
PUT
https://lucidace.com /v1/projects/{project_id}/experiments/{id}/variants/{variant}/screenshot Scope experiment:writeParameters
project_idstringpathrequiredidstringpathrequiredvariantstringpathrequiredRequest body
image/png
[ 0 ]
Code samples
cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/experiments/{id}/variants/{variant}/screenshot" \
-H "Content-Type: image/png" \
-d '[0]'TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
400 not a PNG or JPEG
404
413
DELETE
https://lucidace.com /v1/projects/{project_id}/experiments/{id}/variants/{variant}/screenshot Scope experiment:writeParameters
project_idstringpathrequiredidstringpathrequiredvariantstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/experiments/{id}/variants/{variant}/screenshot"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
404
POST
https://lucidace.com /v1/projects/{project_id}/experiments/{id}/{action} Scope experiment:writeParameters
project_idstringpathrequiredidstringpathrequiredactionstringpathrequiredforstringqueryrequest-approval only: start (default), pause, stop, update or custom_code
Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/experiments/{id}/{action}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
start | pause | resume | stop return the Experiment; request-approval returns the ChangeRequest403
404
409
GET
https://lucidace.com /v1/projects/{project_id}/holdouts Scope experiment:readParameters
project_idstringpathrequiredlimitintegerquerycursorstringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/holdouts"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"data": [
{
"created_at": "2024-01-01T00:00:00Z",
"filters": {},
"id": "string",
"name": "string",
"percentage": 0,
"status": "string"
}
],
"next_cursor": "string"
}Schema
dataobject[]requiredShow child parameters
created_atstringrequiredfiltersobjectrequiredidstringrequirednamestringrequiredpercentagenumberrequiredstatusstringrequirednext_cursorstring404
POST
https://lucidace.com /v1/projects/{project_id}/holdouts Scope experiment:writeParameters
project_idstringpathrequiredRequest body
application/json
filtersobjectnamestringrequiredpercentagenumberrequired{
"filters": {},
"name": "string",
"percentage": 0
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/holdouts" \
-H "Content-Type: application/json" \
-d '{"filters":{},"name":"string","percentage":0}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
Example
{
"created_at": "2024-01-01T00:00:00Z",
"filters": {},
"id": "string",
"name": "string",
"percentage": 0,
"status": "string"
}Schema
created_atstringrequiredfiltersobjectrequiredidstringrequirednamestringrequiredpercentagenumberrequiredstatusstringrequired400
403
404
POST
https://lucidace.com /v1/projects/{project_id}/holdouts/{id}/end Scope experiment:writeParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/holdouts/{id}/end"TypeScript
Python
Go
PHP
Ruby
Java
Updated