flags
POST
https://lucidace.com /v1/projects/{project_id}/flags/{id}/triggers Scope adminParameters
project_idstringpathrequiredidstringpathrequiredRequest body
application/json
actionstringrequiredenable | disable | killenvironmentstringEnvironment for enable / disable; absent = the base state. Ignored by kill (all environments).
namestringrequired{
"action": "string",
"environment": "string",
"name": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/flags/{id}/triggers" \
-H "Content-Type: application/json" \
-d '{"action":"string","environment":"string","name":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
Example
{
"secret": "string",
"trigger": {
"action": "string",
"created_at": "2024-01-01T00:00:00Z",
"created_by": "string",
"environment": "string",
"fire_count": 0,
"flag_id": "string",
"id": "string",
"last_fired_at": "2024-01-01T00:00:00Z",
"name": "string",
"revoked_at": "2024-01-01T00:00:00Z",
"rotated_at": "2024-01-01T00:00:00Z"
},
"url": "string"
}Schema
secretstringrequiredHMAC-SHA256 key for the
Lucida-Signature header.triggerobjectrequiredShow child parameters
actionstringrequiredenable | disable | killcreated_atstringrequiredcreated_bystringenvironmentstringEnvironment the action applies to; absent = the base state (kill: everywhere).
fire_countintegerrequiredflag_idstringrequiredidstringrequiredlast_fired_atstringnamestringrequiredrevoked_atstringrotated_atstringurlstringrequiredPOST here to fire.
400
403
404
DELETE
https://lucidace.com /v1/projects/{project_id}/flags/{id}/triggers/{tid} Scope adminParameters
project_idstringpathrequiredidstringpathrequiredtidstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/flags/{id}/triggers/{tid}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"action": "string",
"created_at": "2024-01-01T00:00:00Z",
"created_by": "string",
"environment": "string",
"fire_count": 0,
"flag_id": "string",
"id": "string",
"last_fired_at": "2024-01-01T00:00:00Z",
"name": "string",
"revoked_at": "2024-01-01T00:00:00Z",
"rotated_at": "2024-01-01T00:00:00Z"
}Schema
actionstringrequiredenable | disable | killcreated_atstringrequiredcreated_bystringenvironmentstringEnvironment the action applies to; absent = the base state (kill: everywhere).
fire_countintegerrequiredflag_idstringrequiredidstringrequiredlast_fired_atstringnamestringrequiredrevoked_atstringrotated_atstring403
404
POST
https://lucidace.com /v1/projects/{project_id}/flags/{id}/triggers/{tid}/rotate Scope adminParameters
project_idstringpathrequiredidstringpathrequiredtidstringpathrequiredCode samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/flags/{id}/triggers/{tid}/rotate"TypeScript
Python
Go
PHP
Ruby
Java
GET
https://lucidace.com /v1/projects/{project_id}/flags/{id}/usage Scope flag:readParameters
project_idstringpathrequiredidstringpathrequiredfromstringquerytostringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/flags/{id}/usage"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"flag": "string",
"series": [
{
"calls": 0,
"day": "string",
"value": "string"
}
]
}Schema
flagstringrequiredseriesUsagePoint[]requiredShow child parameters
callsintegerrequiredNumber of evaluations.
daystringrequiredYYYY-MM-DDvaluestringrequiredServed value (
true, a variant key, ...).404
503
GET
https://lucidace.com /v1/projects/{project_id}/flags/{id}/value-schema Scope flag:readParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/flags/{id}/value-schema"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"schema": {}
}Schema
schemaobjectrequiredJSON Schema subset:
type, enum, const, required, properties, additionalProperties, items, minItems, maxItems, minimum, maximum, minLength, maxLength, pattern (plus title, description, default).404 No such flag, or it has no schema
PUT
https://lucidace.com /v1/projects/{project_id}/flags/{id}/value-schema Scope flag:writeParameters
project_idstringpathrequiredidstringpathrequiredRequest body
application/json
schemaobjectrequiredJSON Schema subset:
type, enum, const, required, properties, additionalProperties, items, minItems, maxItems, minimum, maximum, minLength, maxLength, pattern (plus title, description, default).{
"schema": {}
}Code samples
cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/flags/{id}/value-schema" \
-H "Content-Type: application/json" \
-d '{"schema":{}}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
400 Bad schema, or a current payload breaks it
403
404
DELETE
https://lucidace.com /v1/projects/{project_id}/flags/{id}/value-schema Scope flag:writeParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/flags/{id}/value-schema"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
403
404
GET
https://lucidace.com /v1/projects/{project_id}/link-templates Scope flag:readParameters
project_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/link-templates"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
[
{
"created_at": "2024-01-01T00:00:00Z",
"created_by": "string",
"id": "string",
"kind": "string",
"object_type": "string",
"title": "string",
"url_template": "string"
}
]Schema
created_atstringrequiredcreated_bystringidstringrequiredkindstringrequiredobject_typestringrequiredflag | experiment | anytitlestringrequiredurl_templatestringrequiredURL with
{key}, {project} and {name} placeholders.404
POST
https://lucidace.com /v1/projects/{project_id}/link-templates Scope adminParameters
project_idstringpathrequiredRequest body
application/json
kindstringrequiredobject_typestringrequiredflag | experiment | anytitlestringrequiredurl_templatestringrequiredhttp(s) URL with
{key}, {project} and {name} placeholders.{
"kind": "string",
"object_type": "string",
"title": "string",
"url_template": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/link-templates" \
-H "Content-Type: application/json" \
-d '{"kind":"string","object_type":"string","title":"string","url_template":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
Example
{
"created_at": "2024-01-01T00:00:00Z",
"created_by": "string",
"id": "string",
"kind": "string",
"object_type": "string",
"title": "string",
"url_template": "string"
}Schema
created_atstringrequiredcreated_bystringidstringrequiredkindstringrequiredobject_typestringrequiredflag | experiment | anytitlestringrequiredurl_templatestringrequiredURL with
{key}, {project} and {name} placeholders.400
403
404
Updated