Environments-11
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
DELETE | |
GET | |
GET | |
GET | |
GET | |
POST | |
GET | |
GET | |
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
GET | |
POST | |
PATCH |
Delete environments evaluations
Required API key scopes
evaluation:writePath parameters
- idstring
- project_idstring
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
Query parameters
- afterstring
- beforestring
- distinct_idinteger
- eventstring
- formatstringOne of:
"csv""json" - limitinteger
- offsetinteger
- person_idinteger
- propertiesarray
- selectarray
- wherearray
Response
Example request
GET /api /environments /:project_id /eventsExample response
Status 200
RESPONSE
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
Query parameters
- afterstring
- beforestring
- distinct_idinteger
- eventstring
- formatstringOne of:
"csv""json" - limitinteger
- offsetinteger
- person_idinteger
- propertiesarray
- selectarray
- wherearray
Response
Example request
GET /api /environments /:project_id /eventsExample response
Status 200
RESPONSE
Retrieve environments events
Required API key scopes
query:readPath parameters
- idstring
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Response
Example request
GET /api /environments /:project_id /events /:idExample response
Status 200
RESPONSE
Retrieve environments events
Required API key scopes
query:readPath parameters
- idstring
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Response
Example request
GET /api /environments /:project_id /events /:idExample response
Status 200
RESPONSE
Retrieve environments events values
Required API key scopes
query:readPath parameters
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Example request
GET /api /environments /:project_id /events /valuesExample response
Status 200 No response body
Retrieve environments events values
Required API key scopes
query:readPath parameters
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Example request
GET /api /environments /:project_id /events /valuesExample response
Status 200 No response body
List all environments exports
Required API key scopes
export:readPath parameters
- project_idstring
Query parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /environments /:project_id /exportsExample response
Status 200
RESPONSE
Create environments exports
Required API key scopes
export:writePath parameters
- project_idstring
Request parameters
- dashboardinteger
- insightinteger
- export_format
- export_context
Response
Example request
POST /api /environments /:project_id /exportsExample response
Status 201
RESPONSE
Retrieve environments exports
Required API key scopes
export:readPath parameters
- idinteger
- project_idstring
Response
Example request
GET /api /environments /:project_id /exports /:idExample response
Status 200
RESPONSE
Retrieve environments exports content
Required API key scopes
export:readPath parameters
- idinteger
- project_idstring
Example request
GET /api /environments /:project_id /exports /:id /contentExample response
Status 200 No response body
List all environments external data sources
Create, Read, Update and Delete External data Sources.
Required API key scopes
external_data_source:readPath parameters
- project_idstring
Query parameters
- limitinteger
- offsetinteger
- searchstring
Response
Example request
GET /api /environments /:project_id /external_data_sourcesExample response
Status 200
RESPONSE
Create environments external data sources
Create, Read, Update and Delete External data Sources.
Required API key scopes
external_data_source:writePath parameters
- project_idstring
Request parameters
- client_secretstring
- account_idstring
- descriptionstring
- job_inputs
Response
Example request
POST /api /environments /:project_id /external_data_sourcesExample response
Status 201
RESPONSE
Retrieve environments external data sources
Create, Read, Update and Delete External data Sources.
Required API key scopes
external_data_source:readPath parameters
- idstring
- project_idstring
Response
Example request
GET /api /environments /:project_id /external_data_sources /:idExample response
Status 200
RESPONSE
Update environments external data sources
Create, Read, Update and Delete External data Sources.
Required API key scopes
external_data_source:writePath parameters
- idstring
- project_idstring
Request parameters
- client_secretstring
- account_idstring
- descriptionstring
- job_inputs
Response
Example request
PATCH /api /environments /:project_id /external_data_sources /:idExample response
Status 200
RESPONSE
Delete environments external data sources
Create, Read, Update and Delete External data Sources.
Required API key scopes
external_data_source:writePath parameters
- idstring
- project_idstring
Example request
DELETE /api /environments /:project_id /external_data_sources /:idExample response
Status 204 No response body
Retrieve environments external data sources jobs
Create, Read, Update and Delete External data Sources.
Path parameters
- idstring
- project_idstring
Example request
GET /api /environments /:project_id /external_data_sources /:id /jobsExample response
Status 200 No response body
Create environments external data sources reload
Create, Read, Update and Delete External data Sources.
Path parameters
- idstring
- project_idstring
Request parameters
- client_secretstring
- account_idstring
- descriptionstring
- job_inputs
Example request
POST /api /environments /:project_id /external_data_sources /:id /reloadExample response
Status 200 No response body
Update environments external data sources revenue analytics config
Update the revenue analytics configuration and return the full external data source.
Path parameters
- idstring
- project_idstring
Request parameters
- client_secretstring
- account_idstring
- descriptionstring
- job_inputs
Example request
PATCH /api /environments /:project_id /external_data_sources /:id /revenue_analytics_config