lookup_tables
GET
https://lucidace.com /v1/projects/{project_id}/lookup_tables Scope insight:readParameters
project_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/lookup_tables"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Page of LookupTable by name (at most 20; one page)
Example
{
"data": [
{
"columns": [
"string"
],
"created_at": "2024-01-01T00:00:00Z",
"id": "string",
"join_property": "string",
"key_column": "string",
"name": "string",
"row_count": 0,
"updated_at": "2024-01-01T00:00:00Z"
}
],
"next_cursor": "string"
}Schema
dataLookupTable[]requiredShow child parameters
columnsstring[]requiredcreated_atstringrequiredidstringrequiredjoin_propertystringrequiredThe event property whose value is matched against
key_column.key_columnstringrequirednamestringrequiredReferenced in queries as
lookup:<name>.<column>.row_countintegerrequiredupdated_atstringrequirednext_cursorstring404
POST
https://lucidace.com /v1/projects/{project_id}/lookup_tables Scope insight:writeParameters
project_idstringpathrequiredRequest body
application/json
csvstringrequiredThe CSV text: a header row, then at most 50 000 rows, 20 columns, 1 000 characters per cell, 1.5 MB in all. Headers are lower-cased and non-alphanumerics become
_.join_propertystringrequiredThe event property whose value is matched against the key column.
key_columnstringHeader (normalised) of the unique key column; default is the first column.
namestringrequired[a-z][a-z0-9_]{0,62}; queries read lookup:<name>.<column>.{
"csv": "string",
"join_property": "string",
"key_column": "string",
"name": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/lookup_tables" \
-H "Content-Type: application/json" \
-d '{"csv":"string","join_property":"string","key_column":"string","name":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
Example
{
"columns": [
"string"
],
"created_at": "2024-01-01T00:00:00Z",
"id": "string",
"join_property": "string",
"key_column": "string",
"name": "string",
"row_count": 0,
"updated_at": "2024-01-01T00:00:00Z"
}Schema
columnsstring[]requiredcreated_atstringrequiredidstringrequiredjoin_propertystringrequiredThe event property whose value is matched against
key_column.key_columnstringrequirednamestringrequiredReferenced in queries as
lookup:<name>.<column>.row_countintegerrequiredupdated_atstringrequired400
403
404
409
503
PUT
https://lucidace.com /v1/projects/{project_id}/lookup_tables/{id} Scope insight:writeParameters
project_idstringpathrequiredidstringpathrequiredRequest body
application/json
csvstringrequiredThe new CSV text, under the same caps as an upload.
join_propertystringDefault: the table's current join property.
key_columnstringDefault: the table's current key column.
{
"csv": "string",
"join_property": "string",
"key_column": "string"
}Code samples
cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/lookup_tables/{id}" \
-H "Content-Type: application/json" \
-d '{"csv":"string","join_property":"string","key_column":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
400
403
404
503
DELETE
https://lucidace.com /v1/projects/{project_id}/lookup_tables/{id} Scope insight:writeParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/lookup_tables/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
403
404
503
Updated