flags
GET
https://lucidace.com /v1/projects/{project_id}/flags/{id}/rollout-timeline Scope flag:readThe flag's rollout timeline (guarded rollouts, release pipelines, rollout plans), newest first.
Parameters
project_idstringpathrequiredidstringpathrequiredlimitintegerquerycursorstringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/flags/{id}/rollout-timeline"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"data": [
{
"actor_user_id": "string",
"at": "2024-01-01T00:00:00Z",
"detail": {},
"event": "string",
"flag_id": "string",
"id": "string",
"source": "string",
"source_id": "string"
}
],
"next_cursor": "string"
}Schema
dataobject[]requiredShow child parameters
actor_user_idstringNull when the automation acted.
atstringrequireddetailobjectrequiredeventstringrequirede.g.
started, advanced, auto_advanced, paused, resumed, held, rolled_back.flag_idstringrequiredidstringrequiredsourcestringrequiredrollout | release | plansource_idstringrequirednext_cursorstring404
GET
https://lucidace.com /v1/projects/{project_id}/flags/{id}/rollouts Scope flag:readParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/flags/{id}/rollouts"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
[
{
"created_at": "2024-01-01T00:00:00Z",
"current_step": 0,
"environment": "string",
"flag_id": "string",
"id": "string",
"next_step_at": "2024-01-01T00:00:00Z",
"paused_reason": "string",
"project_id": "string",
"status": "string",
"steps": {}
}
]Schema
created_atstringrequiredcurrent_stepintegerrequiredenvironmentstringflag_idstringrequiredidstringrequirednext_step_atstringrequiredpaused_reasonstringproject_idstringrequiredstatusstringrequiredstepsobjectrequired404
POST
https://lucidace.com /v1/projects/{project_id}/flags/{id}/rollouts Scope flag:writeParameters
project_idstringpathrequiredidstringpathrequiredRequest body
application/json
environmentstringstart_atstringstepsRolloutStep[]required[{pct, hold_minutes, guardrail_experiments?: [uuid]}]; pct strictly increasing.Show child parameters
guardrail_experimentsstring[]hold_minutesintegerpctnumberrequired{
"environment": "string",
"start_at": "2024-01-01T00:00:00Z",
"steps": [
{
"guardrail_experiments": [
"string"
],
"hold_minutes": 0,
"pct": 0
}
]
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/flags/{id}/rollouts" \
-H "Content-Type: application/json" \
-d '{"environment":"string","start_at":"2024-01-01T00:00:00Z","steps":[{"guardrail_experiments":["string"],"hold_minutes":0,"pct":0}]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
Example
{
"created_at": "2024-01-01T00:00:00Z",
"current_step": 0,
"environment": "string",
"flag_id": "string",
"id": "string",
"next_step_at": "2024-01-01T00:00:00Z",
"paused_reason": "string",
"project_id": "string",
"status": "string",
"steps": {}
}Schema
created_atstringrequiredcurrent_stepintegerrequiredenvironmentstringflag_idstringrequiredidstringrequirednext_step_atstringrequiredpaused_reasonstringproject_idstringrequiredstatusstringrequiredstepsobjectrequired400
403
404
DELETE
https://lucidace.com /v1/projects/{project_id}/flags/{id}/rollouts/{plan} Scope flag:writeParameters
project_idstringpathrequiredidstringpathrequiredplanstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/flags/{id}/rollouts/{plan}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
403
404
GET
https://lucidace.com /v1/projects/{project_id}/flags/{id}/schedules Scope flag:readParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/flags/{id}/schedules"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.
404
POST
https://lucidace.com /v1/projects/{project_id}/flags/{id}/schedules Scope flag:writeParameters
project_idstringpathrequiredidstringpathrequiredRequest body
application/json
actionstringrequiredenable | disable | set_rollout | apply_filters | add_condition | apply_variants | apply_payloads.cronstringFive-field cron (
recurrence = cron), matched in timezone.ends_atstringLast instant an occurrence may run at.
payloadobjectrecurrencestringdaily | weekly | monthly | yearly | cron; absent = run once.run_atstringrequiredthenPairHalfShow child parameters
actionstringrequiredcronstringOwn cron for this half (e.g.
0 17 * * 1-5); defaults to the first half's.payloadobjectrun_atstringrequiredtimezonestringIANA zone for the recurrence; defaults to the project's timezone.
{
"action": "string",
"cron": "string",
"ends_at": "2024-01-01T00:00:00Z",
"payload": {},
"recurrence": "string",
"run_at": "2024-01-01T00:00:00Z",
"then": {
"action": "string",
"cron": "string",
"payload": {},
"run_at": "2024-01-01T00:00:00Z"
},
"timezone": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/flags/{id}/schedules" \
-H "Content-Type: application/json" \
-d '{"action":"string","cron":"string","ends_at":"2024-01-01T00:00:00Z","payload":{},"recurrence":"string","run_at":"2024-01-01T00:00:00Z","then":{"action":"string","cron":"string","payload":{},"run_at":"2024-01-01T00:00:00Z"},"timezone":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
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
DELETE
https://lucidace.com /v1/projects/{project_id}/flags/{id}/schedules/{sid} Scope flag:writeParameters
project_idstringpathrequiredidstringpathrequiredsidstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/flags/{id}/schedules/{sid}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
403
404
Updated