Environments-4
For instructions on how to authenticate to use this endpoint, see API overview.
Adds an "access_controls" action to the viewset that handles access control for the given resource
Why a mixin? We want to easily add this to any existing resource, including providing easy helpers for adding access control info such as the current users access level to any response.
Endpoints
Update environments dashboards
Required API key scopes
dashboard:writePath parameters
- idintegerA unique integer value identifying this dashboard. 
- project_idstringProject 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
- pinnedboolean
- deletedboolean
- use_templatestring
- use_dashboardinteger
- delete_insightsboolean
- tagsarray
- restriction_level
Response
Request
PATCH 
Response
Status 200
Update environments dashboards
Required API key scopes
dashboard:writePath parameters
- idintegerA unique integer value identifying this dashboard. 
- project_idstringProject 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
- pinnedboolean
- deletedboolean
- use_templatestring
- use_dashboardinteger
- delete_insightsboolean
- tagsarray
- restriction_level
Response
Request
PATCH 
Response
Status 200
Delete environments dashboards
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
Required API key scopes
dashboard:writePath parameters
- idintegerA unique integer value identifying this dashboard. 
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Request
DELETE 
Response
Status 405 No response body
Delete environments dashboards
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
Required API key scopes
dashboard:writePath parameters
- idintegerA unique integer value identifying this dashboard. 
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Request
DELETE 
Response
Status 405 No response body
Update environments dashboards move tile
Path parameters
- idintegerA unique integer value identifying this dashboard. 
- project_idstringProject 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
- pinnedboolean
- deletedboolean
- use_templatestring
- use_dashboardinteger
- delete_insightsboolean
- tagsarray
- restriction_level
Request
PATCH 
Response
Status 200 No response body
Update environments dashboards move tile
Path parameters
- idintegerA unique integer value identifying this dashboard. 
- project_idstringProject 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
- pinnedboolean
- deletedboolean
- use_templatestring
- use_dashboardinteger
- delete_insightsboolean
- tagsarray
- restriction_level
Request
PATCH 
Response
Status 200 No response body
Create environments dashboards create from template json
Path parameters
- project_idstringProject 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
- pinnedboolean
- deletedboolean
- use_templatestring
- use_dashboardinteger
- delete_insightsboolean
- tagsarray
- restriction_level
Request
POST 
Response
Status 200 No response body
Create environments dashboards create from template json
Path parameters
- project_idstringProject 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
- pinnedboolean
- deletedboolean
- use_templatestring
- use_dashboardinteger
- delete_insightsboolean
- tagsarray
- restriction_level
Request
POST 
Response
Status 200 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_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Query parameters
- afterstringOnly return events with a timestamp after this time. 
- beforestringOnly return events with a timestamp before this time. 
- distinct_idintegerFilter list by distinct id. 
- eventstringFilter list by event. For example user sign upor$pageview.
- formatstringOne of:"csv""json"
- limitintegerThe maximum number of results to return 
- offsetintegerThe initial index from which to return the results. 
- person_idintegerFilter list by person id. 
- propertiesarrayFilter 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
Request
GET 
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_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Query parameters
- afterstringOnly return events with a timestamp after this time. 
- beforestringOnly return events with a timestamp before this time. 
- distinct_idintegerFilter list by distinct id. 
- eventstringFilter list by event. For example user sign upor$pageview.
- formatstringOne of:"csv""json"
- limitintegerThe maximum number of results to return 
- offsetintegerThe initial index from which to return the results. 
- person_idintegerFilter list by person id. 
- propertiesarrayFilter 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
Request
GET 
Response
Status 200
Retrieve environments events
Required API key scopes
query:readPath parameters
- idstring
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Query parameters
- formatstringOne of:"csv""json"
Response
Request
GET 
Response
Status 200
Retrieve environments events
Required API key scopes
query:readPath parameters
- idstring
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Query parameters
- formatstringOne of:"csv""json"
Response
Request
GET 
Response
Status 200
Retrieve environments events values
Required API key scopes
query:readPath parameters
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Query parameters
- formatstringOne of:"csv""json"
Request
GET 
Response
Status 200 No response body
Retrieve environments events values
Required API key scopes
query:readPath parameters
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Query parameters
- formatstringOne of:"csv""json"
Request
GET 
Response
Status 200 No response body
List all environments explicit members
Path parameters
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Request
GET 
Response
Status 200
List all environments explicit members
Path parameters
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Request
GET 
Response
Status 200
Create environments explicit members
Path parameters
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Request parameters
- level
- user_uuidstring
Response
Request
POST 
Response
Status 201
Create environments explicit members
Path parameters
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Request parameters
- level
- user_uuidstring
Response
Request
POST 
Response
Status 201