early-access

Embed
Preview of the card
<a href="https://lucidace.com/docs/ref-early-access"><img src="https://lucidace.com/docs/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/da916cd3-c0fc-4b63-b971-b3c13623daf3/pages/73002ca2-8e6a-4bd1-90e9-c65bccd8fd54/social-card.svg?v=3e7ae33eec8b" alt="early-access" width="600" height="315"></a>
GEThttps://lucidace.com/v1/projects/{project_id}/early-accessScope flag:read

Parameters

project_idstringpathrequired

Code 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
POSThttps://lucidace.com/v1/projects/{project_id}/early-accessScope flag:write

Parameters

project_idstringpathrequired
forcebooleanquery
Edit the flag although a running experiment owns it

Request body

application/json
descriptionstring
documentation_urlstring
flag_keystringrequired
Key of an existing feature flag.
namestringrequired
payloadobject
Data a widget can show next to the feature.
stagestring
draft | 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_atstringrequired
descriptionstringrequired
documentation_urlstringrequired
flag_keystringrequired
idstringrequired
namestringrequired
payloadobjectrequired
Free-form data a widget can show next to the feature.
stagestringrequired
draft | concept | alpha | beta | ga (a draft is hidden from the SDK).
enrolledintegerrequired
People currently opted in.
400
403
404 No such flag
409
DELETEhttps://lucidace.com/v1/projects/{project_id}/early-access/{id}Scope flag:write

Parameters

project_idstringpathrequired
idstringpathrequired

Code 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
PATCHhttps://lucidace.com/v1/projects/{project_id}/early-access/{id}Scope flag:write

Parameters

project_idstringpathrequired
idstringpathrequired
forcebooleanquery
Edit the flag although a running experiment owns it

Request body

application/json
descriptionstring
documentation_urlstring
namestring
payloadobject
stagestring
{
  "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

Responses

400
403
404
409
POSThttps://lucidace.com/v1/projects/{project_id}/early-access/{id}/enrolScope flag:write

Parameters

project_idstringpathrequired
idstringpathrequired

Request body

application/json
distinct_idstringrequired
enrolledboolean
true (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
GEThttps://lucidace.com/v1/projects/{project_id}/early-access/{id}/enrolledScope flag:read

Parameters

project_idstringpathrequired
idstringpathrequired

Code 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
GEThttps://lucidace.com/v1/projects/{project_id}/early-access/{id}/snippetScope flag:read

Parameters

project_idstringpathrequired
idstringpathrequired

Code 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
htmlstringrequired
Paste into any page that has an initialised @lucida-analytics/browser client named lucida.
404
Updated