early-access
GET
https://lucidace.com /v1/projects/{project_id}/early-access Scope flag:readParameters
project_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/early-access"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 {data: EarlyView[]}
404
POST
https://lucidace.com /v1/projects/{project_id}/early-access Scope flag:writeParameters
project_idstringpathrequiredforcebooleanqueryEdit the flag although a running experiment owns it
Request body
application/json
descriptionstringdocumentation_urlstringflag_keystringrequiredKey of an existing feature flag.
namestringrequiredpayloadobjectData a widget can show next to the feature.
stagestringdraft | concept | alpha | beta | ga (default beta). A draft is hidden from the SDK.{
"description": "string",
"documentation_url": "string",
"flag_key": "string",
"name": "string",
"payload": {},
"stage": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/early-access" \
-H "Content-Type: application/json" \
-d '{"description":"string","documentation_url":"string","flag_key":"string","name":"string","payload":{},"stage":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
Example
{
"created_at": "2024-01-01T00:00:00Z",
"description": "string",
"documentation_url": "string",
"flag_key": "string",
"id": "string",
"name": "string",
"payload": {},
"stage": "string",
"enrolled": 0
}Schema
created_atstringrequireddescriptionstringrequireddocumentation_urlstringrequiredflag_keystringrequiredidstringrequirednamestringrequiredpayloadobjectrequiredFree-form data a widget can show next to the feature.
stagestringrequireddraft | concept | alpha | beta | ga (a draft is hidden from the SDK).enrolledintegerrequiredPeople currently opted in.
400
403
404 No such flag
409
DELETE
https://lucidace.com /v1/projects/{project_id}/early-access/{id} Scope flag:writeParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/early-access/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
403
404
PATCH
https://lucidace.com /v1/projects/{project_id}/early-access/{id} Scope flag:writeParameters
project_idstringpathrequiredidstringpathrequiredforcebooleanqueryEdit the flag although a running experiment owns it
Request body
application/json
descriptionstringdocumentation_urlstringnamestringpayloadobjectstagestring{
"description": "string",
"documentation_url": "string",
"name": "string",
"payload": {},
"stage": "string"
}Code samples
cURL
curl -X PATCH "https://lucidace.com/v1/projects/{project_id}/early-access/{id}" \
-H "Content-Type: application/json" \
-d '{"description":"string","documentation_url":"string","name":"string","payload":{},"stage":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
POST
https://lucidace.com /v1/projects/{project_id}/early-access/{id}/enrol Scope flag:writeParameters
project_idstringpathrequiredidstringpathrequiredRequest body
application/json
distinct_idstringrequiredenrolledbooleantrue (default) enrols the person, false removes them.{
"distinct_id": "string",
"enrolled": true
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/early-access/{id}/enrol" \
-H "Content-Type: application/json" \
-d '{"distinct_id":"string","enrolled":true}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
202 Queued; the enrolled list updates once the pipeline has processed it
400
403
404
503
GET
https://lucidace.com /v1/projects/{project_id}/early-access/{id}/enrolled Scope flag:readParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/early-access/{id}/enrolled"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 {data: Enrolled[]} newest enrolment first, at most 1000
404
503
GET
https://lucidace.com /v1/projects/{project_id}/early-access/{id}/snippet Scope flag:readParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/early-access/{id}/snippet"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"html": "string"
}Schema
htmlstringrequiredPaste into any page that has an initialised
@lucida-analytics/browser client named lucida.404
Updated