approvals
GET
https://lucidace.com /v1/projects/{project_id}/approval-policy Scope settings:readParameters
project_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/approval-policy"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"required": [
"string"
],
"rules": {}
}Schema
requiredstring[]requiredPolicy keys that need approval:
cohort.delete, dashboard.delete, experiment.start, experiment.pause, experiment.stop, experiment.update (split or variant change after launch), flag.release (every release pipeline phase), flag.enable, flag.disable, flag.rollout (rollout-only edits), flag.conditions (targeting edits), flag.variants, experiment.custom_code (per-variant custom CSS/JS or HTML in a web experiment), segment.update (editing or scheduling a saved flag segment).rulesobjectPer-key rule; keys without one use the default (one admin, 7 days, any change).
404
PUT
https://lucidace.com /v1/projects/{project_id}/approval-policy Scope adminParameters
project_idstringpathrequiredRequest body
application/json
requiredstring[]requiredPolicy keys that need approval:
cohort.delete, dashboard.delete, experiment.start, experiment.pause, experiment.stop, experiment.update (split or variant change after launch), flag.release (every release pipeline phase), flag.enable, flag.disable, flag.rollout (rollout-only edits), flag.conditions (targeting edits), flag.variants, experiment.custom_code (per-variant custom CSS/JS or HTML in a web experiment), segment.update (editing or scheduling a saved flag segment).rulesobjectPer-key rule; keys without one use the default (one admin, 7 days, any change).
{
"required": [
"string"
],
"rules": {}
}Code samples
cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/approval-policy" \
-H "Content-Type: application/json" \
-d '{"required":["string"],"rules":{}}'TypeScript
Python
Go
PHP
Ruby
Java
POST
https://lucidace.com /v1/projects/{project_id}/approvals Parameters
project_idstringpathrequiredRequest body
application/json
actionstringrequireddeleteresource_idstringrequiredsubjectstringrequiredcohort | dashboard{
"action": "string",
"resource_id": "string",
"subject": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/approvals" \
-H "Content-Type: application/json" \
-d '{"action":"string","resource_id":"string","subject":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
Example
{
"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"
}Schema
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_bystringstatusstringrequiredsubjectstringrequired400
403
404
Updated