experiments

Embed
Preview of the card
<a href="https://lucidace.com/docs/ref-experiments"><img src="https://lucidace.com/docs/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/da916cd3-c0fc-4b63-b971-b3c13623daf3/pages/6af814d4-70c1-4363-8381-689a51668c4d/social-card.svg?v=3e7ae33eec8b" alt="experiments" width="600" height="315"></a>
GEThttps://lucidace.com/v1/projects/{project_id}/experiment-templatesScope experiment:read

Parameters

project_idstringpathrequired
limitintegerquery
cursorstringquery

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/experiment-templates"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
{
  "data": [
    {
      "config": {},
      "created_at": "2024-01-01T00:00:00Z",
      "created_by": "string",
      "description": "string",
      "id": "string",
      "name": "string",
      "updated_at": "2024-01-01T00:00:00Z"
    }
  ],
  "next_cursor": "string"
}
Schema
dataobject[]required
Show child parameters
configobjectrequired
Reusable draft fields: {kind, variants, audience, traffic_pct, metrics, stats_config, requires_approval}.
created_atstringrequired
created_bystring
descriptionstringrequired
idstringrequired
namestringrequired
updated_atstringrequired
next_cursorstring
404
POSThttps://lucidace.com/v1/projects/{project_id}/experiment-templatesScope experiment:write

Parameters

project_idstringpathrequired

Request body

application/json
configobject
Draft fields to keep; ignored when from_experiment is given.
descriptionstring
from_experimentstring
Copy the reusable settings of this experiment.
namestringrequired
{
  "config": {},
  "description": "string",
  "from_experiment": "string",
  "name": "string"
}

Code samples

cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/experiment-templates" \
  -H "Content-Type: application/json" \
  -d '{"config":{},"description":"string","from_experiment":"string","name":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

201
Example
{
  "config": {},
  "created_at": "2024-01-01T00:00:00Z",
  "created_by": "string",
  "description": "string",
  "id": "string",
  "name": "string",
  "updated_at": "2024-01-01T00:00:00Z"
}
Schema
configobjectrequired
Reusable draft fields: {kind, variants, audience, traffic_pct, metrics, stats_config, requires_approval}.
created_atstringrequired
created_bystring
descriptionstringrequired
idstringrequired
namestringrequired
updated_atstringrequired
400
403
404
409
GEThttps://lucidace.com/v1/projects/{project_id}/experiment-templates/{id}Scope experiment:read

Parameters

project_idstringpathrequired
idstringpathrequired

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/experiment-templates/{id}"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

404
DELETEhttps://lucidace.com/v1/projects/{project_id}/experiment-templates/{id}Scope experiment:write

Parameters

project_idstringpathrequired
idstringpathrequired

Code samples

cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/experiment-templates/{id}"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

204
403
404
GEThttps://lucidace.com/v1/projects/{project_id}/experiment-triggersScope experiment:read

Parameters

project_idstringpathrequired
limitintegerquery
cursorstringquery

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/experiment-triggers"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
{
  "data": [
    {
      "created_at": "2024-01-01T00:00:00Z",
      "created_by": "string",
      "definition": {},
      "description": "string",
      "id": "string",
      "name": "string",
      "updated_at": "2024-01-01T00:00:00Z"
    }
  ],
  "next_cursor": "string"
}
Schema
dataobject[]required
Show child parameters
created_atstringrequired
created_bystring
definitionobjectrequired
The trigger group: {op: "and" | "or", conditions: [...]}.
descriptionstringrequired
idstringrequired
namestringrequired
updated_atstringrequired
next_cursorstring
404
POSThttps://lucidace.com/v1/projects/{project_id}/experiment-triggersScope experiment:write

Parameters

project_idstringpathrequired

Request body

application/json
definitionobjectrequired
{op: "and" | "or", conditions: [...]} (see lc_trigger).
descriptionstring
namestringrequired
{
  "definition": {},
  "description": "string",
  "name": "string"
}

Code samples

cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/experiment-triggers" \
  -H "Content-Type: application/json" \
  -d '{"definition":{},"description":"string","name":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

201
Example
{
  "created_at": "2024-01-01T00:00:00Z",
  "created_by": "string",
  "definition": {},
  "description": "string",
  "id": "string",
  "name": "string",
  "updated_at": "2024-01-01T00:00:00Z"
}
Schema
created_atstringrequired
created_bystring
definitionobjectrequired
The trigger group: {op: "and" | "or", conditions: [...]}.
descriptionstringrequired
idstringrequired
namestringrequired
updated_atstringrequired
400
403
404
409
GEThttps://lucidace.com/v1/projects/{project_id}/experiment-triggers/{id}Scope experiment:read

Parameters

project_idstringpathrequired
idstringpathrequired

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/experiment-triggers/{id}"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

404
DELETEhttps://lucidace.com/v1/projects/{project_id}/experiment-triggers/{id}Scope experiment:write

Parameters

project_idstringpathrequired
idstringpathrequired

Code samples

cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/experiment-triggers/{id}"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

204
403
404
PATCHhttps://lucidace.com/v1/projects/{project_id}/experiment-triggers/{id}Scope experiment:write

Parameters

project_idstringpathrequired
idstringpathrequired

Request body

application/json
definitionobject
descriptionstring
namestring
{
  "definition": {},
  "description": "string",
  "name": "string"
}

Code samples

cURL
curl -X PATCH "https://lucidace.com/v1/projects/{project_id}/experiment-triggers/{id}" \
  -H "Content-Type: application/json" \
  -d '{"definition":{},"description":"string","name":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

400
403
404
409

Updated