Property definitions
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
GET | |
PATCH | |
DELETE | |
GET |
List all property definitions
Required API key scopes
property_definition:readPath parameters
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Query parameters
- event_namesstring
If sent, response value will have
is_seen_on_filtered_eventspopulated. JSON-encoded - exclude_core_propertiesbooleanDefault:
falseWhether to exclude core properties
- exclude_hiddenbooleanDefault:
falseWhether to exclude properties marked as hidden
- excluded_propertiesstring
JSON-encoded list of excluded properties
- filter_by_event_namesboolean
Whether to return only properties for events in
event_names - group_type_indexinteger
What group type is the property for. Only should be set if
type=group - is_feature_flagboolean
Whether to return only (or excluding) feature flag properties
- is_numericalboolean
Whether to return only (or excluding) numerical property definitions
- limitinteger
Number of results to return per page.
- offsetinteger
The initial index from which to return the results.
- propertiesstring
Comma-separated list of properties to filter
- searchstring
Searches properties by name
- typestringDefault:
eventOne of:"event""person""group""session"What property definitions to return
event- eventperson- persongroup- groupsession- session
Response
Example request
GET /api /projects /:project_id /property_definitionsExample response
Status 200
Retrieve property definitions
Required API key scopes
property_definition:readPath parameters
- idstring
A UUID string identifying this property definition.
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Response
Example request
GET /api /projects /:project_id /property_definitions /:idExample response
Status 200
Update property definitions
Required API key scopes
property_definition:writePath parameters
- idstring
A UUID string identifying this property definition.
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Request parameters
- namestring
- is_numericalboolean
- property_type
- tagsarray
Response
Example request
PATCH /api /projects /:project_id /property_definitions /:idExample response
Status 200
Delete property definitions
Required API key scopes
property_definition:writePath parameters
- idstring
A UUID string identifying this property definition.
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Example request
DELETE /api /projects /:project_id /property_definitions /:idExample response
Status 204 No response body
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:readPath parameters
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Example request
GET /api /projects /:project_id /property_definitions /seen_together