taxonomy

Embed
Preview of the card
<a href="https://lucidace.com/docs/ref-taxonomy"><img src="https://lucidace.com/docs/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/da916cd3-c0fc-4b63-b971-b3c13623daf3/pages/c5dc3a1d-51b3-496c-aa50-15d3d4cca3ff/social-card.svg?v=3e7ae33eec8b" alt="taxonomy" width="600" height="315"></a>
PATCHhttps://lucidace.com/v1/projects/{project_id}/property-definitions/{id}Scope insight:write

Parameters

project_idstringpathrequired
idstringpathrequired

Request body

application/json
deprecatedboolean
descriptionstring
hiddenboolean
owner_user_idstring
Accountable user id; null clears it, absent keeps it.
tagsarray
value_typestring
string | numeric | boolean | datetime | duration | array | object; setting it locks the type against later inference.
value_type_lockedboolean
false unlocks the type so ingestion infers it again; true pins the current type.
verifiedboolean
{
  "deprecated": true,
  "description": "string",
  "hidden": true,
  "owner_user_id": "string",
  "tags": [
    "string"
  ],
  "value_type": "string",
  "value_type_locked": true,
  "verified": true
}

Code samples

cURL
curl -X PATCH "https://lucidace.com/v1/projects/{project_id}/property-definitions/{id}" \
  -H "Content-Type: application/json" \
  -d '{"deprecated":true,"description":"string","hidden":true,"owner_user_id":"string","tags":["string"],"value_type":"string","value_type_locked":true,"verified":true}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
{
  "deprecated": true,
  "description": "string",
  "event_name": "string",
  "hidden": true,
  "id": "string",
  "name": "string",
  "owner_user_id": "string",
  "preview_type": "string",
  "tags": [
    "string"
  ],
  "target": "string",
  "updated_at": "2024-01-01T00:00:00Z",
  "value_type": "string",
  "value_type_locked": true,
  "verified": true
}
Schema
deprecatedbooleanrequired
descriptionstringrequired
event_namestringrequired
hiddenbooleanrequired
idstringrequired
namestringrequired
owner_user_idstring
preview_typestring
Content type of the image preview (GET .../preview); None = no preview.
tagsstring[]required
targetstringrequired
event | person | group | session
updated_atstringrequired
value_typestringrequired
string | numeric | boolean | datetime | duration | array | object
value_type_lockedbooleanrequired
Set when a person chose the type; ingestion then never changes it.
verifiedbooleanrequired
400
403
404
GEThttps://lucidace.com/v1/projects/{project_id}/property-definitions/{id}/previewScope insight:read

Parameters

project_idstringpathrequired
idstringpathrequired

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/property-definitions/{id}/preview"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 the preview image
404
PUThttps://lucidace.com/v1/projects/{project_id}/property-definitions/{id}/previewScope insight:write

Parameters

project_idstringpathrequired
idstringpathrequired

Request body

image/png
[
  0
]

Code samples

cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/property-definitions/{id}/preview" \
  -H "Content-Type: image/png" \
  -d '[0]'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

204
400 not a PNG, JPEG or WebP
404
413
DELETEhttps://lucidace.com/v1/projects/{project_id}/property-definitions/{id}/previewScope insight:write

Parameters

project_idstringpathrequired
idstringpathrequired

Code samples

cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/property-definitions/{id}/preview"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

204
404
GEThttps://lucidace.com/v1/projects/{project_id}/property-valuesScope insight:read

Parameters

project_idstringpathrequired
keystringqueryrequired
typestringquery
event (default) or person
qstringquery

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/property-values?key=<key>"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Top 50 values by frequency over 30 days
Example
[
  {
    "count": 0,
    "value": "string"
  }
]
Schema
countintegerrequired
valuestringrequired
400
404
503
POSThttps://lucidace.com/v1/projects/{project_id}/taxonomy/events/bulkScope insight:write

Parameters

project_idstringpathrequired

Request body

application/json
add_tagsstring[]
deprecatedboolean
descriptionstring
hiddenboolean
owner_user_idstring
null clears the owner, absent keeps it.
remove_tagsstring[]
verifiedboolean
namesstring[]required
{
  "add_tags": [
    "string"
  ],
  "deprecated": true,
  "description": "string",
  "hidden": true,
  "owner_user_id": "string",
  "remove_tags": [
    "string"
  ],
  "verified": true,
  "names": [
    "string"
  ]
}

Code samples

cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/taxonomy/events/bulk" \
  -H "Content-Type: application/json" \
  -d '{"add_tags":["string"],"deprecated":true,"description":"string","hidden":true,"owner_user_id":"string","remove_tags":["string"],"verified":true,"names":["string"]}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
{
  "updated": 0
}
Schema
updatedintegerrequired
400
403
404
GEThttps://lucidace.com/v1/projects/{project_id}/taxonomy/events/export.csvScope insight:read

Parameters

project_idstringpathrequired

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/taxonomy/events/export.csv"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 name,description,tags,verified,hidden,deprecated,owner_user_id,volume_30d; tags ;-separated; stored definitions plus events seen in 30 days
"string"
404
POSThttps://lucidace.com/v1/projects/{project_id}/taxonomy/events/importScope insight:write

Parameters

project_idstringpathrequired

Request body

text/csv

Header with name plus any of description, tags (;-separated), verified, hidden, deprecated, owner_user_id. Rows upsert by name; nothing is written when a row is invalid.

"string"

Code samples

cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/taxonomy/events/import" \
  -H "Content-Type: text/csv" \
  -d '"string"'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

400
403
404
POSThttps://lucidace.com/v1/projects/{project_id}/taxonomy/properties/bulkScope insight:write

Parameters

project_idstringpathrequired

Request body

application/json
add_tagsstring[]
deprecatedboolean
descriptionstring
hiddenboolean
owner_user_idstring
null clears the owner, absent keeps it.
remove_tagsstring[]
verifiedboolean
idsstring[]required
{
  "add_tags": [
    "string"
  ],
  "deprecated": true,
  "description": "string",
  "hidden": true,
  "owner_user_id": "string",
  "remove_tags": [
    "string"
  ],
  "verified": true,
  "ids": [
    "string"
  ]
}

Code samples

cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/taxonomy/properties/bulk" \
  -H "Content-Type: application/json" \
  -d '{"add_tags":["string"],"deprecated":true,"description":"string","hidden":true,"owner_user_id":"string","remove_tags":["string"],"verified":true,"ids":["string"]}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

400
403
404 an id is not a property of this project
GEThttps://lucidace.com/v1/projects/{project_id}/taxonomy/properties/export.csvScope insight:read

Parameters

project_idstringpathrequired

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/taxonomy/properties/export.csv"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 id,target,event_name,name,value_type,description,tags,verified,hidden,deprecated,owner_user_id
"string"
404
POSThttps://lucidace.com/v1/projects/{project_id}/taxonomy/properties/importScope insight:write

Parameters

project_idstringpathrequired

Request body

text/csv

Header with id (from the export) plus any of description, tags, verified, hidden, deprecated, owner_user_id. Nothing is written when a row is invalid or an id is unknown.

"string"

Code samples

cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/taxonomy/properties/import" \
  -H "Content-Type: text/csv" \
  -d '"string"'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

400
403
404

Updated