Core-10
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
PATCH | |
DELETE | |
GET | |
POST | |
GET | |
GET | |
GET | |
GET | |
GET | |
GET | |
POST | |
GET | |
GET | |
GET | |
POST | |
GET | |
PATCH | |
DELETE |
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 /typescriptExample response
Status 200 No response body
List all exports
Required API key scopes
export:readQuery parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /projects /:project_id /exportsExample response
Status 200
Create exports
Required API key scopes
export:writeRequest parameters
- dashboardintegernull
- insightintegernull
- export_format
- export_context
Response
Example request
POST /api /projects /:project_id /exportsExample response
Status 201
Retrieve exports
Required API key scopes
export:readPath parameters
- idinteger
Response
Example request
GET /api /projects /:project_id /exports /:idExample response
Status 200
Retrieve exports content
Required API key scopes
export:readPath parameters
- idinteger
Example request
GET /api /projects /:project_id /exports /:id /contentExample response
Status 200 No response body
List all file system
Required API key scopes
file_system:readQuery parameters
- limitinteger
- offsetinteger
- searchstring
Response
Example request
GET /api /projects /:project_id /file_systemExample response
Status 200
Create file system
Required API key scopes
file_system:writeRequest parameters
- pathstring
- typestring
- refstringnull
- hrefstringnull
- meta
- shortcutbooleannull
Response
Example request
POST /api /projects /:project_id /file_systemExample response
Status 201
Retrieve file system
Required API key scopes
file_system:readPath parameters
- idstring
Response
Example request
GET /api /projects /:project_id /file_system /:idExample response
Status 200
Update file system
Required API key scopes
file_system:writePath parameters
- idstring
Request parameters
- pathstring
- typestring
- refstringnull
- hrefstringnull
- meta
- shortcutbooleannull
Response
Example request
PATCH /api /projects /:project_id /file_system /:idExample response
Status 200
Delete file system
Required API key scopes
file_system:writePath parameters
- idstring
Example request
DELETE /api /projects /:project_id /file_system /:id