Event definitions
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
GET | |
POST | |
GET | |
GET | |
GET | |
GET | |
GET |
List all event definitions
Required API key scopes
event_definition:readQuery parameters
- exclude_hiddenboolean
- exclude_staleboolean
- limitinteger
- offsetinteger
Response
Example request
GET /api /projects /:project_id /event_definitionsExample response
Status 200
Create event definitions
Required API key scopes
event_definition:writeRequest parameters
- namestring
- ownerintegernull
- descriptionstringnull
- tagsarray
- verifiedboolean
- hiddenbooleannull
- enforcement_mode
- primary_propertystringnull
- post_to_slackbooleanDefault:
false - default_columnsarray
Response
Example request
POST /api /projects /:project_id /event_definitionsExample response
Status 201
Retrieve event definitions
Required API key scopes
event_definition:readPath parameters
- idstring
Response
Example request
GET /api /projects /:project_id /event_definitions /:idExample response
Status 200
Update event definitions
Required API key scopes
event_definition:writePath parameters
- idstring
Request parameters
- namestring
- ownerintegernull
- descriptionstringnull
- tagsarray
- verifiedboolean
- hiddenbooleannull
- enforcement_mode
- primary_propertystringnull
- post_to_slackbooleanDefault:
false - default_columnsarray
Response
Example request
PATCH /api /projects /:project_id /event_definitions /:idExample response
Status 200
Delete event definitions
Required API key scopes
event_definition:writePath parameters
- idstring
Example request
DELETE /api /projects /:project_id /event_definitions /:idExample response
Status 204 No response body
Retrieve event definitions metrics
Path parameters
- idstring
Example request
GET /api /projects /:project_id /event_definitions /:id /metricsExample response
Status 200 No response body
Create event definitions bulk update tags
Bulk update tags on multiple objects.
PAT access: this action has no required_scopes= on the decorator —
inheriting viewsets must add "bulk_update_tags" to their
scope_object_write_actions list to accept personal API keys.
Without that opt-in, APIScopePermission rejects PAT requests with
"This action does not support personal API key access". Done per-viewset
so granting <scope>:write for one resource doesn't leak access to
sibling resources that share this mixin.
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 /event_definitions /bulk_update_tagsExample response
Status 200
Retrieve event definitions by name
Get event definition by exact name
Required API key scopes
event_definition:readQuery parameters
- namestring
Response
Example request
GET /api /projects /:project_id /event_definitions /by_nameExample response
Status 200
Retrieve event definitions golang
Required API key scopes
event_definition:readExample request
GET /api /projects /:project_id /event_definitions /golangExample response
Status 200 No response body
Retrieve event definitions primary properties
Resolve team-configured primary properties for event definitions.
The response only contains entries where a non-null primary_property is set on the EventDefinition. Callers should fall back to the core taxonomy defaults client-side for names not present in the response.
Required API key scopes
event_definition:readQuery parameters
- namesarray
Response
Example request
GET /api /projects /:project_id /event_definitions /primary_propertiesExample response
Status 200
Retrieve event definitions python
Required API key scopes
event_definition:readExample request
GET /api /projects /:project_id /event_definitions /pythonExample response
Status 200 No response body
Retrieve event definitions typescript
Required API key scopes
event_definition:readExample request
GET /api /projects /:project_id /event_definitions /typescript