Property definitions
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
GET | |
PATCH | |
DELETE | |
POST | |
GET |
List all property definitions
Required API key scopes
property_definition:readQuery parameters
- event_namesstring
- exclude_core_propertiesbooleanDefault:
false - exclude_hiddenbooleanDefault:
false - excluded_propertiesstring
- filter_by_event_namesboolean
- group_type_indexinteger
- is_feature_flagboolean
- is_numericalboolean
- limitinteger
- offsetinteger
- propertiesstring
- searchstring
- typestringDefault:
eventOne of:"event""person""group""session" - verifiedboolean
Response
Example request
GET /api /projects /:project_id /property_definitionsExample response
Status 200
RESPONSE
Retrieve property definitions
Required API key scopes
property_definition:readPath parameters
- idstring
Response
Example request
GET /api /projects /:project_id /property_definitions /:idExample response
Status 200
RESPONSE
Update property definitions
Required API key scopes
property_definition:writePath parameters
- idstring
Request parameters
- descriptionstring
- tagsarray
- property_type
- verifiedboolean
- hiddenboolean
Response
Example request
PATCH /api /projects /:project_id /property_definitions /:idExample response
Status 200
RESPONSE
Delete property definitions
Required API key scopes
property_definition:writePath parameters
- idstring
Example request
DELETE /api /projects /:project_id /property_definitions /:idExample response
Status 204 No response body
Create property definitions bulk update tags
Bulk update tags on multiple objects.
Accepts:
- {"ids": [...], "action": "add"|"remove"|"set", "tags": ["tag1", "tag2"]}
Actions:
- "add": Add tags to existing tags on each object
- "remove": Remove specific tags from each object
- "set": Replace all tags on each object with the provided list
Request parameters
- idsarray
- action
- tagsarray
Response
Example request
POST /api /projects /:project_id /property_definitions /bulk_update_tagsExample response
Status 200
RESPONSE
Retrieve property definitions seen together
Allows a caller to provide a list of event names and a single property name Returns a map of the event names to a boolean representing whether that property has ever been seen with that event_name
Required API key scopes
property_definition:readExample request
GET /api /projects /:project_id /property_definitions /seen_together