calculated_properties
GET
https://lucidace.com /v1/projects/{project_id}/calculated_properties Scope insight:readParameters
project_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/calculated_properties"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Page of CalculatedProperty by name (at most 100; one page)
Example
{
"data": [
{
"created_at": "2024-01-01T00:00:00Z",
"description": "string",
"expr": {},
"id": "string",
"name": "string",
"updated_at": "2024-01-01T00:00:00Z"
}
],
"next_cursor": "string"
}Schema
dataCalculatedProperty[]requiredShow child parameters
created_atstringrequireddescriptionstringrequiredexprobjectrequiredidstringrequirednamestringrequiredReferenced in queries as the event property
calc:<name>.updated_atstringrequirednext_cursorstring404
POST
https://lucidace.com /v1/projects/{project_id}/calculated_properties Scope insight:writeParameters
project_idstringpathrequiredRequest body
application/json
descriptionstringexprobjectrequiredExpression AST:
prop | lit | concat | regex_extract | coalesce | arith | case | borrow (borrow: property key of the last event before, in the session or for the person).namestringrequired[a-z][a-z0-9_]{0,62}; used as calc:<name> in filters and breakdowns.{
"description": "string",
"expr": {},
"name": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/calculated_properties" \
-H "Content-Type: application/json" \
-d '{"description":"string","expr":{},"name":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
Example
{
"created_at": "2024-01-01T00:00:00Z",
"description": "string",
"expr": {},
"id": "string",
"name": "string",
"updated_at": "2024-01-01T00:00:00Z"
}Schema
created_atstringrequireddescriptionstringrequiredexprobjectrequiredidstringrequirednamestringrequiredReferenced in queries as the event property
calc:<name>.updated_atstringrequired400
403
404
409
DELETE
https://lucidace.com /v1/projects/{project_id}/calculated_properties/{id} Scope insight:writeParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/calculated_properties/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
403
404
PATCH
https://lucidace.com /v1/projects/{project_id}/calculated_properties/{id} Scope insight:writeParameters
project_idstringpathrequiredidstringpathrequiredRequest body
application/json
descriptionstringexprobject{
"description": "string",
"expr": {}
}Code samples
cURL
curl -X PATCH "https://lucidace.com/v1/projects/{project_id}/calculated_properties/{id}" \
-H "Content-Type: application/json" \
-d '{"description":"string","expr":{}}'TypeScript
Python
Go
PHP
Ruby
Java
Updated