Environments-12
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
POST | |
POST | |
POST | |
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
GET |
Create environments error tracking symbol sets bulk start upload
Required API key scopes
error_tracking:writePath 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/.
Request parameters
- refstring
- storage_ptrstring
- failure_reasonstring
Example request
POST /api /environments /:project_id /error_tracking /symbol_sets /bulk_start_uploadExample response
Status 200 No response body
Create environments error tracking symbol sets bulk start upload
Required API key scopes
error_tracking:writePath 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/.
Request parameters
- refstring
- storage_ptrstring
- failure_reasonstring
Example request
POST /api /environments /:project_id /error_tracking /symbol_sets /bulk_start_uploadExample response
Status 200 No response body
Create environments error tracking symbol sets start upload
Required API key scopes
error_tracking:writePath 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
Example response
Status 200 No response body
Create environments error tracking symbol sets start upload
Required API key scopes
error_tracking:writePath 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
Example response
Status 200 No response body
Create environments evaluation runs
Create a new evaluation run.
This endpoint validates the request and enqueues a Temporal workflow to asynchronously execute the evaluation.
Required API key scopes
evaluation:writePath 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
POST /api /environments /:project_id /evaluation_runsExample response
Status 201 No response body
Create environments evaluation runs
Create a new evaluation run.
This endpoint validates the request and enqueues a Temporal workflow to asynchronously execute the evaluation.
Required API key scopes
evaluation:writePath 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
POST /api /environments /:project_id /evaluation_runsExample response
Status 201 No response body
List all environments evaluations
Required API key scopes
evaluation: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
- enabledboolean
Filter by enabled status
- id__inarray
Multiple values may be separated by commas.
- limitinteger
Number of results to return per page.
- offsetinteger
The initial index from which to return the results.
- order_byarray
Ordering
created_at- Created At-created_at- Created At (descending)updated_at- Updated At-updated_at- Updated At (descending)name- Name-name- Name (descending)
- searchstring
Search in name or description
Response
Example request
GET /api /environments /:project_id /evaluationsExample response
Status 200
List all environments evaluations
Required API key scopes
evaluation: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
- enabledboolean
Filter by enabled status
- id__inarray
Multiple values may be separated by commas.
- limitinteger
Number of results to return per page.
- offsetinteger
The initial index from which to return the results.
- order_byarray
Ordering
created_at- Created At-created_at- Created At (descending)updated_at- Updated At-updated_at- Updated At (descending)name- Name-name- Name (descending)
- searchstring
Search in name or description
Response
Example request
GET /api /environments /:project_id /evaluationsExample response
Status 200
Create environments evaluations
Required API key scopes
evaluation:writePath 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/.
Request parameters
- namestring
- descriptionstring
- enabledboolean
- evaluation_type
- evaluation_config
- output_type
- output_config
- conditions
- deletedboolean
Response
Example request
POST /api /environments /:project_id /evaluationsExample response
Status 201
Create environments evaluations
Required API key scopes
evaluation:writePath 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/.
Request parameters
- namestring
- descriptionstring
- enabledboolean
- evaluation_type
- evaluation_config
- output_type
- output_config
- conditions
- deletedboolean
Response
Example request
POST /api /environments /:project_id /evaluationsExample response
Status 201
Retrieve environments evaluations
Required API key scopes
evaluation:readPath parameters
- idstring
A UUID string identifying this evaluation.
- 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 /environments /:project_id /evaluations /:idExample response
Status 200
Retrieve environments evaluations
Required API key scopes
evaluation:readPath parameters
- idstring
A UUID string identifying this evaluation.
- 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 /environments /:project_id /evaluations /:idExample response
Status 200
Update environments evaluations
Required API key scopes
evaluation:writePath parameters
- idstring
A UUID string identifying this evaluation.
- 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
- descriptionstring
- enabledboolean
- evaluation_type
- evaluation_config
- output_type
- output_config
- conditions
- deletedboolean
Response
Example request
PATCH /api /environments /:project_id /evaluations /:idExample response
Status 200
Update environments evaluations
Required API key scopes
evaluation:writePath parameters
- idstring
A UUID string identifying this evaluation.
- 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
- descriptionstring
- enabledboolean
- evaluation_type
- evaluation_config
- output_type
- output_config
- conditions
- deletedboolean
Response
Example request
PATCH /api /environments /:project_id /evaluations /:idExample response
Status 200
Delete environments evaluations
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
Required API key scopes
evaluation:writePath parameters
- idstring
A UUID string identifying this evaluation.
- 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 /environments /:project_id /evaluations /:idExample response
Status 405 No response body
Delete environments evaluations
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
Required API key scopes
evaluation:writePath parameters
- idstring
A UUID string identifying this evaluation.
- 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 /environments /:project_id /evaluations /:idExample response
Status 405 No response body
List all environments events
This endpoint allows you to list and filter events.
It is effectively deprecated and is kept only for backwards compatibility.
If you ever ask about it you will be advised to not use it...
If you want to ad-hoc list or aggregate events, use the Query endpoint instead.
If you want to export all events or many pages of events you should use our CDP/Batch Exports products instead.
Required API key scopes
query: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
- afterstring
Only return events with a timestamp after this time.
- beforestring
Only return events with a timestamp before this time.
- distinct_idinteger
Filter list by distinct id.
- eventstring
Filter list by event. For example
user sign upor$pageview. - formatstringOne of:
"csv""json" - limitinteger
The maximum number of results to return
- offsetinteger
The initial index from which to return the results.
- person_idinteger
Filter list by person id.
- propertiesarray
Filter events by event property, person property, cohort, groups and more.
- selectarray
(Experimental) JSON-serialized array of HogQL expressions to return
- wherearray
(Experimental) JSON-serialized array of HogQL expressions that must pass
Response
Example request
GET /api /environments /:project_id /eventsExample response
Status 200
List all environments events
This endpoint allows you to list and filter events.
It is effectively deprecated and is kept only for backwards compatibility.
If you ever ask about it you will be advised to not use it...
If you want to ad-hoc list or aggregate events, use the Query endpoint instead.
If you want to export all events or many pages of events you should use our CDP/Batch Exports products instead.
Required API key scopes
query: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
- afterstring
Only return events with a timestamp after this time.
- beforestring
Only return events with a timestamp before this time.
- distinct_idinteger
Filter list by distinct id.
- eventstring
Filter list by event. For example
user sign upor$pageview. - formatstringOne of:
"csv""json" - limitinteger
The maximum number of results to return
- offsetinteger
The initial index from which to return the results.
- person_idinteger
Filter list by person id.
- propertiesarray
Filter events by event property, person property, cohort, groups and more.
- selectarray
(Experimental) JSON-serialized array of HogQL expressions to return
- wherearray
(Experimental) JSON-serialized array of HogQL expressions that must pass
Response
Example request
GET /api /environments /:project_id /events