Organizations
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
POST | |
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
POST |
Retrieve
Required API key scopes
organization:readQuery parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /organizationsExample response
Status 200
RESPONSE
Retrieve
Required API key scopes
organization:readQuery parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /organizationsExample response
Status 200
RESPONSE
Create
Required API key scopes
organization:writeRequest parameters
- namestring
- logo_media_idstring
- is_member_join_email_enabledboolean
- enforce_2faboolean
- members_can_inviteboolean
- members_can_use_personal_api_keysboolean
- allow_publicly_shared_resourcesboolean
- is_ai_data_processing_approvedboolean
- default_experiment_stats_method
- default_anonymize_ipsboolean
- default_role_idstring
Response
Example request
POST /api /organizationsExample response
Status 201
RESPONSE
Create
Required API key scopes
organization:writeRequest parameters
- namestring
- logo_media_idstring
- is_member_join_email_enabledboolean
- enforce_2faboolean
- members_can_inviteboolean
- members_can_use_personal_api_keysboolean
- allow_publicly_shared_resourcesboolean
- is_ai_data_processing_approvedboolean
- default_experiment_stats_method
- default_anonymize_ipsboolean
- default_role_idstring
Response
Example request
POST /api /organizationsExample response
Status 201
RESPONSE
Retrieve
Required API key scopes
organization:readPath parameters
- idstring
Response
Example request
GET /api /organizations /:idExample response
Status 200
RESPONSE
Retrieve
Required API key scopes
organization:readPath parameters
- idstring
Response
Example request
GET /api /organizations /:idExample response
Status 200
RESPONSE
Update partial
Required API key scopes
organization:writePath parameters
- idstring
Request parameters
- namestring
- logo_media_idstring
- is_member_join_email_enabledboolean
- enforce_2faboolean
- members_can_inviteboolean
- members_can_use_personal_api_keysboolean
- allow_publicly_shared_resourcesboolean
- is_ai_data_processing_approvedboolean
- default_experiment_stats_method
- default_anonymize_ipsboolean
- default_role_idstring
Response
Example request
PATCH /api /organizations /:idExample response
Status 200
RESPONSE
Update partial
Required API key scopes
organization:writePath parameters
- idstring
Request parameters
- namestring
- logo_media_idstring
- is_member_join_email_enabledboolean
- enforce_2faboolean
- members_can_inviteboolean
- members_can_use_personal_api_keysboolean
- allow_publicly_shared_resourcesboolean
- is_ai_data_processing_approvedboolean
- default_experiment_stats_method
- default_anonymize_ipsboolean
- default_role_idstring
Response
Example request
PATCH /api /organizations /:idExample response
Status 200
RESPONSE
Delete
Required API key scopes
organization:writePath parameters
- idstring
Example request
DELETE /api /organizations /:idExample response
Status 204 No response body
Delete
Required API key scopes
organization:writePath parameters
- idstring
Example request
DELETE /api /organizations /:idExample response
Status 204 No response body
Create environments rollback
Trigger environments rollback migration for users previously on multi-environment projects. The request data should be a mapping of source environment IDs to target environment IDs. Example: { "2": 2, "116911": 2, "99346": 99346, "140256": 99346 }
Path parameters
- idstring
Request parameters
- namestring
- logo_media_idstring
- is_member_join_email_enabledboolean
- enforce_2faboolean
- members_can_inviteboolean
- members_can_use_personal_api_keysboolean
- allow_publicly_shared_resourcesboolean
- is_ai_data_processing_approvedboolean
- default_experiment_stats_method
- default_anonymize_ipsboolean
- default_role_idstring
Response
Example request
POST /api /organizations /:id /environments_rollbackExample response
Status 200
RESPONSE
List all batch exports
Required API key scopes
batch_export:readPath parameters
- organization_idstring
Query parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /organizations /:organization_id /batch_exportsExample response
Status 200
RESPONSE
Create batch exports
Required API key scopes
batch_export:writePath parameters
- organization_idstring
Request parameters
- namestring
- model
- destination
- interval
- pausedboolean
- last_paused_atstring
- start_atstring
- end_atstring
- hogql_querystring
- filters
Response
Example request
POST /api /organizations /:organization_id /batch_exportsExample response
Status 201
RESPONSE
Retrieve batch exports
Required API key scopes
batch_export:readPath parameters
- idstring
- organization_idstring
Response
Example request
GET /api /organizations /:organization_id /batch_exports /:idExample response
Status 200
RESPONSE
Update batch exports
Required API key scopes
batch_export:writePath parameters
- idstring
- organization_idstring
Request parameters
- namestring
- model
- destination
- interval
- pausedboolean
- last_paused_atstring
- start_atstring
- end_atstring
- hogql_querystring
- filters
Response
Example request
PATCH /api /organizations /:organization_id /batch_exports /:idExample response
Status 200
RESPONSE
Delete batch exports
Required API key scopes
batch_export:writePath parameters
- idstring
- organization_idstring
Example request
DELETE /api /organizations /:organization_id /batch_exports /:idExample response
Status 204 No response body
Create batch exports backfill
Trigger a backfill for a BatchExport.
Note: This endpoint is deprecated. Please use POST /batch_exports/<id>/backfills/ instead.
Required API key scopes
batch_export:writePath parameters
- idstring
- organization_idstring
Request parameters
- namestring
- model
- destination
- interval
- pausedboolean
- last_paused_atstring
- start_atstring
- end_atstring
- hogql_querystring
- filters
Example request
POST /api /organizations /:organization_id /batch_exports /:id /backfill