lookup_tables

Embed
Preview of the card
<a href="https://lucidace.com/docs/ref-lookup-tables"><img src="https://lucidace.com/docs/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/da916cd3-c0fc-4b63-b971-b3c13623daf3/pages/1e694228-8377-409d-b2c8-ac94fb9d3525/social-card.svg?v=3e7ae33eec8b" alt="lookup_tables" width="600" height="315"></a>
GEThttps://lucidace.com/v1/projects/{project_id}/lookup_tablesScope insight:read

Parameters

project_idstringpathrequired

Code 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[]required
Show child parameters
columnsstring[]required
created_atstringrequired
idstringrequired
join_propertystringrequired
The event property whose value is matched against key_column.
key_columnstringrequired
namestringrequired
Referenced in queries as lookup:<name>.<column>.
row_countintegerrequired
updated_atstringrequired
next_cursorstring
404
POSThttps://lucidace.com/v1/projects/{project_id}/lookup_tablesScope insight:write

Parameters

project_idstringpathrequired

Request body

application/json
csvstringrequired
The 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_propertystringrequired
The event property whose value is matched against the key column.
key_columnstring
Header (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[]required
created_atstringrequired
idstringrequired
join_propertystringrequired
The event property whose value is matched against key_column.
key_columnstringrequired
namestringrequired
Referenced in queries as lookup:<name>.<column>.
row_countintegerrequired
updated_atstringrequired
400
403
404
409
503
PUThttps://lucidace.com/v1/projects/{project_id}/lookup_tables/{id}Scope insight:write

Parameters

project_idstringpathrequired
idstringpathrequired

Request body

application/json
csvstringrequired
The new CSV text, under the same caps as an upload.
join_propertystring
Default: the table's current join property.
key_columnstring
Default: 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

200 The table now holds the new rows

Same as 201 · POST /v1/projects/{project_id}/lookup_tables

400
403
404
503
DELETEhttps://lucidace.com/v1/projects/{project_id}/lookup_tables/{id}Scope insight:write

Parameters

project_idstringpathrequired
idstringpathrequired

Code 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