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}/namespacesScope experiment:read

Parameters

project_idstringpathrequired
limitintegerquery
cursorstringquery

Code samples

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

Responses

200
Example
{
  "data": [
    {
      "created_at": "2024-01-01T00:00:00Z",
      "id": "string",
      "name": "string",
      "parameters": {},
      "total_buckets": 0
    }
  ],
  "next_cursor": "string"
}
Schema
dataobject[]required
Show child parameters
created_atstringrequired
idstringrequired
namestringrequired
parametersobjectrequired
Layer parameter defaults shared by the layer's experiments (LC-EXT-36).
total_bucketsintegerrequired
next_cursorstring
404
POSThttps://lucidace.com/v1/projects/{project_id}/namespacesScope experiment:write

Parameters

project_idstringpathrequired

Request body

application/json
namestringrequired
parametersobject
Layer parameter defaults: {name: value}; experiments in the layer override them per variant (payload.lc_params).
total_bucketsinteger
{
  "name": "string",
  "parameters": {},
  "total_buckets": 0
}

Code samples

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

Responses

201
Example
{
  "created_at": "2024-01-01T00:00:00Z",
  "id": "string",
  "name": "string",
  "parameters": {},
  "total_buckets": 0
}
Schema
created_atstringrequired
idstringrequired
namestringrequired
parametersobjectrequired
Layer parameter defaults shared by the layer's experiments (LC-EXT-36).
total_bucketsintegerrequired
400
403
404
GEThttps://lucidace.com/v1/projects/{project_id}/namespaces/{id}Scope experiment:read

Parameters

project_idstringpathrequired
idstringpathrequired

Code samples

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

Responses

200
Example
{
  "allocations": [
    {
      "bucket_end": 0,
      "bucket_start": 0,
      "experiment_id": "string"
    }
  ],
  "namespace": {
    "created_at": "2024-01-01T00:00:00Z",
    "id": "string",
    "name": "string",
    "parameters": {},
    "total_buckets": 0
  }
}
Schema
allocationsAllocation[]required
Show child parameters
bucket_endintegerrequired
bucket_startintegerrequired
experiment_idstringrequired
namespaceobjectrequired
Show child parameters
created_atstringrequired
idstringrequired
namestringrequired
parametersobjectrequired
Layer parameter defaults shared by the layer's experiments (LC-EXT-36).
total_bucketsintegerrequired
404
DELETEhttps://lucidace.com/v1/projects/{project_id}/namespaces/{id}Scope admin

Parameters

project_idstringpathrequired
idstringpathrequired

Code samples

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

Responses

204
403
404
409
PUThttps://lucidace.com/v1/projects/{project_id}/namespaces/{id}/parametersScope experiment:write

Parameters

project_idstringpathrequired
idstringpathrequired

Request body

application/json

Parameter defaults {name: value}; experiments created or edited later resolve against them

{}

Code samples

cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/namespaces/{id}/parameters" \
  -H "Content-Type: application/json" \
  -d '{}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

400
403
404
GEThttps://lucidace.com/v1/projects/{project_id}/tenant-experimentsScope experiment:read

Parameters

project_idstringpathrequired
tenant_idstringquery

Code samples

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

Responses

200 Page of TenantExperiment, newest first
Example
{
  "data": [
    {
      "created_at": "2024-01-01T00:00:00Z",
      "id": "string",
      "metric": "string",
      "name": "string",
      "status": "string",
      "stopped_at": "2024-01-01T00:00:00Z",
      "tenant_id": "string",
      "variants": [
        {}
      ]
    }
  ],
  "next_cursor": "string"
}
Schema
dataTenantExperiment[]required
Show child parameters
created_atstringrequired
idstringrequired
metricstringrequired
Conversion event name.
namestringrequired
statusstringrequired
running | stopped
stopped_atstring
tenant_idstringrequired
variantsobject[]required
[{key, weight, name?}]; the first variant is the control. key is immutable; name is the display label.
next_cursorstring
400
404
POSThttps://lucidace.com/v1/projects/{project_id}/tenant-experimentsScope experiment:write

Parameters

project_idstringpathrequired

Request body

application/json
metricstringrequired
Conversion event name, sent with experiment_id and variant through the tenant lane.
namestringrequired
tenant_idstringrequired
variantsVariantIn[]required
2 to 10 variants; the first is the control.
Show child parameters
keystringrequired
1 to 64 characters, unique in the experiment.
namestring
Display name (optional, 1 to 200 characters); change later with PATCH .../variants/{key}.
weightnumber
Relative allocation (default 1).
{
  "metric": "string",
  "name": "string",
  "tenant_id": "string",
  "variants": [
    {
      "key": "string",
      "name": "string",
      "weight": 0
    }
  ]
}

Code samples

cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/tenant-experiments" \
  -H "Content-Type: application/json" \
  -d '{"metric":"string","name":"string","tenant_id":"string","variants":[{"key":"string","name":"string","weight":0}]}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

201
Example
{
  "created_at": "2024-01-01T00:00:00Z",
  "id": "string",
  "metric": "string",
  "name": "string",
  "status": "string",
  "stopped_at": "2024-01-01T00:00:00Z",
  "tenant_id": "string",
  "variants": [
    {}
  ]
}
Schema
created_atstringrequired
idstringrequired
metricstringrequired
Conversion event name.
namestringrequired
statusstringrequired
running | stopped
stopped_atstring
tenant_idstringrequired
variantsobject[]required
[{key, weight, name?}]; the first variant is the control. key is immutable; name is the display label.
400
403
404
GEThttps://lucidace.com/v1/projects/{project_id}/tenant-experiments/{id}Scope experiment:read

Parameters

project_idstringpathrequired
idstringpathrequired

Code samples

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

Responses

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

Parameters

project_idstringpathrequired
idstringpathrequired

Code samples

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

Responses

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

Parameters

project_idstringpathrequired
idstringpathrequired

Request body

application/json
namestring
statusstring
running | stopped: stop when the platform's test ends (results stay readable).
{
  "name": "string",
  "status": "string"
}

Code samples

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

Responses

400
403
404

Updated