flags
PATCH
https://lucidace.com /v1/projects/{project_id}/flags/{id}/schedules/{sid} Scope flag:writeParameters
project_idstringpathrequiredidstringpathrequiredsidstringpathrequiredRequest body
application/json
Fields to change on a pending schedule; null clears recurrence, cron or ends_at.
cronstringends_atstringpayloadobjectrecurrencestringrun_atstringtimezonestring{
"cron": null,
"ends_at": null,
"payload": null,
"recurrence": null,
"run_at": null,
"timezone": null
}Code samples
cURL
curl -X PATCH "https://lucidace.com/v1/projects/{project_id}/flags/{id}/schedules/{sid}" \
-H "Content-Type: application/json" \
-d '{"cron":null,"ends_at":null,"payload":null,"recurrence":null,"run_at":null,"timezone":null}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"action": "string",
"anchor_at": "2024-01-01T00:00:00Z",
"created_at": "2024-01-01T00:00:00Z",
"created_by": "string",
"cron": "string",
"ends_at": "2024-01-01T00:00:00Z",
"error": "string",
"executed_at": "2024-01-01T00:00:00Z",
"flag_id": "string",
"id": "string",
"occurrence": 0,
"pair_id": "string",
"payload": {},
"project_id": "string",
"recurrence": "string",
"run_at": "2024-01-01T00:00:00Z",
"series_id": "string",
"status": "string",
"timezone": "string"
}Schema
actionstringrequiredanchor_atstringFirst occurrence; later ones are
anchor_at + n * period in timezone.created_atstringrequiredcreated_bystringcronstringFive-field cron evaluated in
timezone (recurrence = cron).ends_atstringNo occurrence is created after this instant.
errorstringrequiredWhy the run failed (empty otherwise).
executed_atstringflag_idstringrequiredidstringrequiredoccurrenceintegerrequiredpair_idstringLinks the two halves of an enable/disable pair.
payloadobjectrequiredproject_idstringrequiredrecurrencestringdaily | weekly | monthly | yearly | cron; absent = one-off.run_atstringrequiredseries_idstringShared by every occurrence of one recurring schedule.
statusstringrequiredtimezonestringrequiredIANA zone the recurrence's wall-clock times are kept in.
400
403
404
GET
https://lucidace.com /v1/projects/{project_id}/flags/{id}/shares Scope flag:readParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/flags/{id}/shares"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Projects this flag is served in besides its own
Example
{
"data": [
{
"created_at": "2024-01-01T00:00:00Z",
"project_id": "string",
"project_name": "string"
}
]
}Schema
dataShareTarget[]requiredShow child parameters
created_atstringrequiredproject_idstringrequiredproject_namestringrequired404
PUT
https://lucidace.com /v1/projects/{project_id}/flags/{id}/shares/{target_id} Scope flag:writeParameters
project_idstringpathrequiredidstringpathrequiredtarget_idstringpathrequiredAnother project of the same organization
Code samples
cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/flags/{id}/shares/{target_id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204 Shared (idempotent)
400
403
404
DELETE
https://lucidace.com /v1/projects/{project_id}/flags/{id}/shares/{target_id} Scope flag:writeParameters
project_idstringpathrequiredidstringpathrequiredtarget_idstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/flags/{id}/shares/{target_id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
403
404
GET
https://lucidace.com /v1/projects/{project_id}/flags/{id}/sticky-assignments Scope flag:readParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/flags/{id}/sticky-assignments"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
{total, values: [{value, units}]}404
DELETE
https://lucidace.com /v1/projects/{project_id}/flags/{id}/sticky-assignments Scope flag:writeForget stored assignments: units are bucketed by hash again (re-randomise).
Parameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/flags/{id}/sticky-assignments"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
{removed}403
404
POST
https://lucidace.com /v1/projects/{project_id}/flags/{id}/toggle Scope flag:writeParameters
project_idstringpathrequiredidstringpathrequiredflag id or key
forcebooleanqueryEdit serving state although a running experiment owns the flag
Request body
application/json
enabledbooleanrequired{
"enabled": true
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/flags/{id}/toggle" \
-H "Content-Type: application/json" \
-d '{"enabled":true}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 the updated FlagRecord
Example
{
"created_at": "2024-01-01T00:00:00Z",
"created_by": "string",
"description": "string",
"enabled": true,
"environment_state": {},
"expires_at": "2024-01-01T00:00:00Z",
"filters": {},
"holdout_id": "string",
"id": "string",
"key": "string",
"kind": "string",
"lifecycle": "string",
"name": "string",
"namespace_id": "string",
"owner_user_id": "string",
"payloads": {},
"protected_envs": [
"string"
],
"stickiness": "string",
"tags": [
"string"
],
"updated_at": "2024-01-01T00:00:00Z",
"variants": {},
"version": 0
}Schema
created_atstringrequiredcreated_bystringdescriptionstringrequiredenabledbooleanrequiredenvironment_stateobjectrequiredexpires_atstringfiltersobjectrequiredholdout_idstringidstringrequiredkeystringrequiredkindstringrequiredlifecyclestringrequireddraft | active | launched | deprecated (advisory; stale detection surfaces the last two).namestringrequirednamespace_idstringowner_user_idstringpayloadsobjectrequiredprotected_envsstring[]requiredstickinessstringrequiredtagsstring[]requiredupdated_atstringrequiredvariantsobjectrequiredversionintegerrequired404
409
experiment_running (a running experiment owns this flag; retry with force=true), or protected environment: use a change requestGET
https://lucidace.com /v1/projects/{project_id}/flags/{id}/triggers Scope flag:readParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/flags/{id}/triggers"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
[
{
"action": "string",
"created_at": "2024-01-01T00:00:00Z",
"created_by": "string",
"environment": "string",
"fire_count": 0,
"flag_id": "string",
"id": "string",
"last_fired_at": "2024-01-01T00:00:00Z",
"name": "string",
"revoked_at": "2024-01-01T00:00:00Z",
"rotated_at": "2024-01-01T00:00:00Z"
}
]Schema
actionstringrequiredenable | disable | killcreated_atstringrequiredcreated_bystringenvironmentstringEnvironment the action applies to; absent = the base state (kill: everywhere).
fire_countintegerrequiredflag_idstringrequiredidstringrequiredlast_fired_atstringnamestringrequiredrevoked_atstringrotated_atstring404
Updated