flags

Embed
Preview of the card
<a href="https://lucidace.com/docs/ref-flags"><img src="https://lucidace.com/docs/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/da916cd3-c0fc-4b63-b971-b3c13623daf3/pages/b5c3688b-7e55-4666-be20-ed9c5f8c72a6/social-card.svg?v=3e7ae33eec8b" alt="flags" width="600" height="315"></a>
GEThttps://lucidace.com/v1/projects/{project_id}/flags/{id}/rollout-timelineScope flag:read

The flag's rollout timeline (guarded rollouts, release pipelines, rollout plans), newest first.

Parameters

project_idstringpathrequired
idstringpathrequired
limitintegerquery
cursorstringquery

Code 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[]required
Show child parameters
actor_user_idstring
Null when the automation acted.
atstringrequired
detailobjectrequired
eventstringrequired
e.g. started, advanced, auto_advanced, paused, resumed, held, rolled_back.
flag_idstringrequired
idstringrequired
sourcestringrequired
rollout | release | plan
source_idstringrequired
next_cursorstring
404
GEThttps://lucidace.com/v1/projects/{project_id}/flags/{id}/rolloutsScope flag:read

Parameters

project_idstringpathrequired
idstringpathrequired

Code 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_atstringrequired
current_stepintegerrequired
environmentstring
flag_idstringrequired
idstringrequired
next_step_atstringrequired
paused_reasonstring
project_idstringrequired
statusstringrequired
stepsobjectrequired
404
POSThttps://lucidace.com/v1/projects/{project_id}/flags/{id}/rolloutsScope flag:write

Parameters

project_idstringpathrequired
idstringpathrequired

Request body

application/json
environmentstring
start_atstring
stepsRolloutStep[]required
[{pct, hold_minutes, guardrail_experiments?: [uuid]}]; pct strictly increasing.
Show child parameters
guardrail_experimentsstring[]
hold_minutesinteger
pctnumberrequired
{
  "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_atstringrequired
current_stepintegerrequired
environmentstring
flag_idstringrequired
idstringrequired
next_step_atstringrequired
paused_reasonstring
project_idstringrequired
statusstringrequired
stepsobjectrequired
400
403
404
DELETEhttps://lucidace.com/v1/projects/{project_id}/flags/{id}/rollouts/{plan}Scope flag:write

Parameters

project_idstringpathrequired
idstringpathrequired
planstringpathrequired

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

Parameters

project_idstringpathrequired
idstringpathrequired

Code 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
actionstringrequired
anchor_atstring
First occurrence; later ones are anchor_at + n * period in timezone.
created_atstringrequired
created_bystring
cronstring
Five-field cron evaluated in timezone (recurrence = cron).
ends_atstring
No occurrence is created after this instant.
errorstringrequired
Why the run failed (empty otherwise).
executed_atstring
flag_idstringrequired
idstringrequired
occurrenceintegerrequired
pair_idstring
Links the two halves of an enable/disable pair.
payloadobjectrequired
project_idstringrequired
recurrencestring
daily | weekly | monthly | yearly | cron; absent = one-off.
run_atstringrequired
series_idstring
Shared by every occurrence of one recurring schedule.
statusstringrequired
timezonestringrequired
IANA zone the recurrence's wall-clock times are kept in.
404
POSThttps://lucidace.com/v1/projects/{project_id}/flags/{id}/schedulesScope flag:write

Parameters

project_idstringpathrequired
idstringpathrequired

Request body

application/json
actionstringrequired
enable | disable | set_rollout | apply_filters | add_condition | apply_variants | apply_payloads.
cronstring
Five-field cron (recurrence = cron), matched in timezone.
ends_atstring
Last instant an occurrence may run at.
payloadobject
recurrencestring
daily | weekly | monthly | yearly | cron; absent = run once.
run_atstringrequired
thenPairHalf
Show child parameters
actionstringrequired
cronstring
Own cron for this half (e.g. 0 17 * * 1-5); defaults to the first half's.
payloadobject
run_atstringrequired
timezonestring
IANA 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
actionstringrequired
anchor_atstring
First occurrence; later ones are anchor_at + n * period in timezone.
created_atstringrequired
created_bystring
cronstring
Five-field cron evaluated in timezone (recurrence = cron).
ends_atstring
No occurrence is created after this instant.
errorstringrequired
Why the run failed (empty otherwise).
executed_atstring
flag_idstringrequired
idstringrequired
occurrenceintegerrequired
pair_idstring
Links the two halves of an enable/disable pair.
payloadobjectrequired
project_idstringrequired
recurrencestring
daily | weekly | monthly | yearly | cron; absent = one-off.
run_atstringrequired
series_idstring
Shared by every occurrence of one recurring schedule.
statusstringrequired
timezonestringrequired
IANA zone the recurrence's wall-clock times are kept in.
400
403
404
DELETEhttps://lucidace.com/v1/projects/{project_id}/flags/{id}/schedules/{sid}Scope flag:write

Parameters

project_idstringpathrequired
idstringpathrequired
sidstringpathrequired

Code 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