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}/release-pipelinesScope flag:read

Parameters

project_idstringpathrequired
limitintegerquery
cursorstringquery

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/release-pipelines"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
{
  "data": [
    {
      "created_at": "2024-01-01T00:00:00Z",
      "created_by": "string",
      "description": "string",
      "id": "string",
      "name": "string",
      "phases": [
        {}
      ],
      "updated_at": "2024-01-01T00:00:00Z"
    }
  ],
  "next_cursor": "string"
}
Schema
dataobject[]required
Show child parameters
created_atstringrequired
created_bystring
descriptionstringrequired
idstringrequired
namestringrequired
phasesobject[]required
[ReleasePhase] in promotion order.
updated_atstringrequired
next_cursorstring
404
POSThttps://lucidace.com/v1/projects/{project_id}/release-pipelinesScope flag:write

Parameters

project_idstringpathrequired

Request body

application/json
descriptionstring
namestringrequired
phasesReleasePhase[]required
Show child parameters
environmentstringrequired
Environment the phase releases to (production, staging, ...).
guardrail_experimentsstring[]
Experiments whose guardrails must stay healthy while this phase is live (at most 10).
hold_minutesinteger
Auto-advance to the next phase after this one has been live this many minutes while its guardrails stay healthy (5 to 43200); absent = advance by hand.
namestringrequired
on_breachstring
On a guardrail breach: pause (default) stops the automation until resumed, rollback restores every environment of the release to how it was at start.
requires_approvalboolean
The phase needs an approved change request (protected environments always do).
rollout_pctnumber
Set every condition of that environment to this percentage; absent keeps the targeting.
{
  "description": "string",
  "name": "string",
  "phases": [
    {
      "environment": "string",
      "guardrail_experiments": [
        "string"
      ],
      "hold_minutes": 0,
      "name": "string",
      "on_breach": "string",
      "requires_approval": true,
      "rollout_pct": 0
    }
  ]
}

Code samples

cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/release-pipelines" \
  -H "Content-Type: application/json" \
  -d '{"description":"string","name":"string","phases":[{"environment":"string","guardrail_experiments":["string"],"hold_minutes":0,"name":"string","on_breach":"string","requires_approval":true,"rollout_pct":0}]}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

201
Example
{
  "created_at": "2024-01-01T00:00:00Z",
  "created_by": "string",
  "description": "string",
  "id": "string",
  "name": "string",
  "phases": [
    {}
  ],
  "updated_at": "2024-01-01T00:00:00Z"
}
Schema
created_atstringrequired
created_bystring
descriptionstringrequired
idstringrequired
namestringrequired
phasesobject[]required
[ReleasePhase] in promotion order.
updated_atstringrequired
400
403
404
409
GEThttps://lucidace.com/v1/projects/{project_id}/release-pipelines/{id}Scope flag:read

Parameters

project_idstringpathrequired
idstringpathrequired

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/release-pipelines/{id}"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

404
PUThttps://lucidace.com/v1/projects/{project_id}/release-pipelines/{id}Scope flag:write

Parameters

project_idstringpathrequired
idstringpathrequired

Request body

application/json
descriptionstring
namestringrequired
phasesReleasePhase[]required
Show child parameters
environmentstringrequired
Environment the phase releases to (production, staging, ...).
guardrail_experimentsstring[]
Experiments whose guardrails must stay healthy while this phase is live (at most 10).
hold_minutesinteger
Auto-advance to the next phase after this one has been live this many minutes while its guardrails stay healthy (5 to 43200); absent = advance by hand.
namestringrequired
on_breachstring
On a guardrail breach: pause (default) stops the automation until resumed, rollback restores every environment of the release to how it was at start.
requires_approvalboolean
The phase needs an approved change request (protected environments always do).
rollout_pctnumber
Set every condition of that environment to this percentage; absent keeps the targeting.
{
  "description": "string",
  "name": "string",
  "phases": [
    {
      "environment": "string",
      "guardrail_experiments": [
        "string"
      ],
      "hold_minutes": 0,
      "name": "string",
      "on_breach": "string",
      "requires_approval": true,
      "rollout_pct": 0
    }
  ]
}

Code samples

cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/release-pipelines/{id}" \
  -H "Content-Type: application/json" \
  -d '{"description":"string","name":"string","phases":[{"environment":"string","guardrail_experiments":["string"],"hold_minutes":0,"name":"string","on_breach":"string","requires_approval":true,"rollout_pct":0}]}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

400
403
404
409
DELETEhttps://lucidace.com/v1/projects/{project_id}/release-pipelines/{id}Scope flag:write

Parameters

project_idstringpathrequired
idstringpathrequired

Code samples

cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/release-pipelines/{id}"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

204
403
404
Updated