flags
POST
https://lucidace.com /v1/projects/{project_id}/flags/{id}/release/abort Scope flag:writeParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/flags/{id}/release/abort"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"awaiting_cr": "string",
"baseline": {},
"created_at": "2024-01-01T00:00:00Z",
"current_phase": 0,
"flag_id": "string",
"id": "string",
"paused_reason": "string",
"phase_applied_at": "2024-01-01T00:00:00Z",
"phases": [
{}
],
"pipeline_id": "string",
"project_id": "string",
"started_by": "string",
"status": "string",
"updated_at": "2024-01-01T00:00:00Z"
}Schema
awaiting_crstringChange request the next phase waits on.
baselineobjectrequired{env: {enabled, filters}} at start: what a rollback restores.created_atstringrequiredcurrent_phaseintegerrequiredIndex of the last applied phase (-1 = none yet).
flag_idstringrequiredidstringrequiredpaused_reasonstringWhy the automation paused (guardrail breach or a person).
phase_applied_atstringWhen the current phase went live (the automation's hold counts from here).
phasesobject[]requiredCopy of the pipeline's phases taken at start.
pipeline_idstringproject_idstringrequiredstarted_bystringstatusstringrequiredactive | paused | completed | aborted | rolled_backupdated_atstringrequired403
404
409
POST
https://lucidace.com /v1/projects/{project_id}/flags/{id}/release/advance Scope flag:writeApply the next phase, or open its change request when the phase is gated.
Parameters
project_idstringpathrequiredidstringpathrequiredforcebooleanqueryAdvance even while an experiment runs on the flag
Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/flags/{id}/release/advance"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"change_request": {
"applied_version": 0,
"approvals": [
{}
],
"base_version": 0,
"created_at": "2024-01-01T00:00:00Z",
"environment": "string",
"experiment_id": "string",
"expires_at": "2024-01-01T00:00:00Z",
"failure_reason": "string",
"flag_id": "string",
"id": "string",
"policy_key": "string",
"project_id": "string",
"proposal": {},
"quorum": 0,
"requested_by": "string",
"review_note": "string",
"reviewed_at": "2024-01-01T00:00:00Z",
"reviewed_by": "string",
"status": "string",
"subject": "string"
},
"release": {
"awaiting_cr": "string",
"baseline": {},
"created_at": "2024-01-01T00:00:00Z",
"current_phase": 0,
"flag_id": "string",
"id": "string",
"paused_reason": "string",
"phase_applied_at": "2024-01-01T00:00:00Z",
"phases": [
{}
],
"pipeline_id": "string",
"project_id": "string",
"started_by": "string",
"status": "string",
"updated_at": "2024-01-01T00:00:00Z"
}
}Schema
change_requestChangeRequestShow child parameters
applied_versionintegerapprovalsobject[]required[{user_id, note, at}], one entry per approver so far.base_versionintegerFlag version the request was made against; apply fails when the flag moved on.
created_atstringrequiredenvironmentstringexperiment_idstringexpires_atstringPending or approved requests past this instant expire unused.
failure_reasonstringWhy a
failed request could not be applied.flag_idstringidstringrequiredpolicy_keystringThe approval-policy key whose rule governs this request (
flag.rollout, ...).project_idstringrequiredproposalobjectrequiredquorumintegerrequiredApprovals needed before the request counts as approved.
requested_bystringreview_notestringreviewed_atstringreviewed_bystringstatusstringrequiredsubjectstringrequiredreleaseobjectrequiredShow child parameters
awaiting_crstringChange request the next phase waits on.
baselineobjectrequired{env: {enabled, filters}} at start: what a rollback restores.created_atstringrequiredcurrent_phaseintegerrequiredIndex of the last applied phase (-1 = none yet).
flag_idstringrequiredidstringrequiredpaused_reasonstringWhy the automation paused (guardrail breach or a person).
phase_applied_atstringWhen the current phase went live (the automation's hold counts from here).
phasesobject[]requiredCopy of the pipeline's phases taken at start.
pipeline_idstringproject_idstringrequiredstarted_bystringstatusstringrequiredactive | paused | completed | aborted | rolled_backupdated_atstringrequired403
404
409
POST
https://lucidace.com /v1/projects/{project_id}/flags/{id}/release/pause Scope flag:writeStop the automation of the flag's active release (manual advance is blocked too until resumed).
Parameters
project_idstringpathrequiredidstringpathrequiredRequest body
application/json
reasonstringWhy the automation stops (shown on the release and the timeline).
{
"reason": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/flags/{id}/release/pause" \
-H "Content-Type: application/json" \
-d '{"reason":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
POST
https://lucidace.com /v1/projects/{project_id}/flags/{id}/release/resume Scope flag:writeResume a paused release; the current phase's hold starts again from now.
Parameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/flags/{id}/release/resume"TypeScript
Python
Go
PHP
Ruby
Java
POST
https://lucidace.com /v1/projects/{project_id}/flags/{id}/rerandomize Scope flag:writeRotate the flag's salt (approval rules for protected environments apply).
Parameters
project_idstringpathrequiredidstringpathrequiredforcebooleanqueryRotate although a running experiment owns the flag; its analysis window restarts
Request body
application/json
confirmstringrequiredThe flag key, typed again to confirm.
reasonstringrequiredWhy (1-500 chars); kept on the flag history row and the audit entry.
reset_stickybooleanAlso forget stored sticky assignments (default true); false keeps sticky units where they are.
{
"confirm": "string",
"reason": "string",
"reset_sticky": true
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/flags/{id}/rerandomize" \
-H "Content-Type: application/json" \
-d '{"confirm":"string","reason":"string","reset_sticky":true}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"environments": [
"string"
],
"flag_id": "string",
"results_reset_at": "2024-01-01T00:00:00Z",
"sticky_removed": 0,
"warning": "string"
}Schema
environmentsstring[]requiredEnvironments whose own targeting got the new salt too.
flag_idstringrequiredresults_reset_atstringSet when a running experiment's analysis window restarted now.
sticky_removedintegerrequiredwarningstringrequired400
403
404
409
POST
https://lucidace.com /v1/projects/{project_id}/flags/{id}/restore Scope flag:writeParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/flags/{id}/restore"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 The flag is back, switched off
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_atstringrequiredvariantsobjectrequiredversionintegerrequired403
404 Not a deleted flag
409 A live flag took the key
PATCH
https://lucidace.com /v1/projects/{project_id}/flags/{id}/rollout Scope flag:writeParameters
project_idstringpathrequiredidstringpathrequiredflag id or key
forcebooleanqueryEdit serving state although a running experiment owns the flag
Request body
application/json
rollout_pctnumberrequired0..=100; applied to the flag's first condition (one is added when it has none).
{
"rollout_pct": 0
}Code samples
cURL
curl -X PATCH "https://lucidace.com/v1/projects/{project_id}/flags/{id}/rollout" \
-H "Content-Type: application/json" \
-d '{"rollout_pct":0}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
400
404
409
experiment_running (a running experiment owns this flag; retry with force=true), or protected environment: use a change requestUpdated