Organizations-2
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
POST | |
POST | |
POST | |
POST | |
GET | |
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
POST | |
GET | |
POST | |
DELETE | |
POST | |
GET | |
PATCH |
Retrieve batch exports logs
Path parameters
- idstring
A UUID string identifying this batch export.
- organization_idstring
Example request
GET /api /organizations /:organization_id /batch_exports /:id /logsExample response
Status 200 No response body
Create batch exports pause
Pause a BatchExport.
Required API key scopes
batch_export:writePath parameters
- idstring
A UUID string identifying this batch export.
- organization_idstring
Request parameters
- namestring
A human-readable name for this BatchExport.
- model
Which model this BatchExport is exporting.
events- Eventspersons- Personssessions- Sessions
- destination
- interval
- pausedboolean
Whether this BatchExport is paused or not.
- last_paused_atstring
The timestamp at which this BatchExport was last paused.
- start_atstring
Time before which any Batch Export runs won't be triggered.
- end_atstring
Time after which any Batch Export runs won't be triggered.
- hogql_querystring
- filters
Example request
POST /api /organizations /:organization_id /batch_exports /:id /pauseExample response
Status 200 No response body
Create batch exports run test step
Required API key scopes
INTERNALPath parameters
- idstring
A UUID string identifying this batch export.
- organization_idstring
Request parameters
- namestring
A human-readable name for this BatchExport.
- model
Which model this BatchExport is exporting.
events- Eventspersons- Personssessions- Sessions
- destination
- interval
- pausedboolean
Whether this BatchExport is paused or not.
- last_paused_atstring
The timestamp at which this BatchExport was last paused.
- start_atstring
Time before which any Batch Export runs won't be triggered.
- end_atstring
Time after which any Batch Export runs won't be triggered.
- hogql_querystring
- filters
Example request
POST /api /organizations /:organization_id /batch_exports /:id /run_test_stepExample response
Status 200 No response body
Create batch exports unpause
Unpause a BatchExport.
Required API key scopes
batch_export:writePath parameters
- idstring
A UUID string identifying this batch export.
- organization_idstring
Request parameters
- namestring
A human-readable name for this BatchExport.
- model
Which model this BatchExport is exporting.
events- Eventspersons- Personssessions- Sessions
- destination
- interval
- pausedboolean
Whether this BatchExport is paused or not.
- last_paused_atstring
The timestamp at which this BatchExport was last paused.
- start_atstring
Time before which any Batch Export runs won't be triggered.
- end_atstring
Time after which any Batch Export runs won't be triggered.
- hogql_querystring
- filters
Example request
POST /api /organizations /:organization_id /batch_exports /:id /unpauseExample response
Status 200 No response body
Create batch exports run test step new
Required API key scopes
INTERNALPath parameters
- organization_idstring
Request parameters
- namestring
A human-readable name for this BatchExport.
- model
Which model this BatchExport is exporting.
events- Eventspersons- Personssessions- Sessions
- destination
- interval
- pausedboolean
Whether this BatchExport is paused or not.
- last_paused_atstring
The timestamp at which this BatchExport was last paused.
- start_atstring
Time before which any Batch Export runs won't be triggered.
- end_atstring
Time after which any Batch Export runs won't be triggered.
- hogql_querystring
- filters
Example request
POST /api /organizations /:organization_id /batch_exports /run_test_step_newExample response
Status 200 No response body
Retrieve batch exports test
Required API key scopes
INTERNALPath parameters
- organization_idstring
Example request
GET /api /organizations /:organization_id /batch_exports /testExample response
Status 200 No response body
List all domains
Required API key scopes
organization:readPath parameters
- organization_idstring
Query parameters
- limitinteger
Number of results to return per page.
- offsetinteger
The initial index from which to return the results.
Response
Example request
GET /api /organizations /:organization_id /domainsExample response
Status 200
Create domains
Required API key scopes
organization:writePath parameters
- organization_idstring
Request parameters
- domainstring
- jit_provisioning_enabledboolean
- sso_enforcementstring
- saml_entity_idstring
- saml_acs_urlstring
- saml_x509_certstring
Response
Example request
POST /api /organizations /:organization_id /domainsExample response
Status 201
Retrieve domains
Required API key scopes
organization:readPath parameters
- idstring
A UUID string identifying this domain.
- organization_idstring
Response
Example request
GET /api /organizations /:organization_id /domains /:idExample response
Status 200
Update domains
Required API key scopes
organization:writePath parameters
- idstring
A UUID string identifying this domain.
- organization_idstring
Request parameters
- domainstring
- jit_provisioning_enabledboolean
- sso_enforcementstring
- saml_entity_idstring
- saml_acs_urlstring
- saml_x509_certstring
Response
Example request
PATCH /api /organizations /:organization_id /domains /:idExample response
Status 200
Delete domains
Required API key scopes
organization:writePath parameters
- idstring
A UUID string identifying this domain.
- organization_idstring
Example request
DELETE /api /organizations /:organization_id /domains /:idExample response
Status 204 No response body
Create domains verify
Path parameters
- idstring
A UUID string identifying this domain.
- organization_idstring
Request parameters
- domainstring
- jit_provisioning_enabledboolean
- sso_enforcementstring
- saml_entity_idstring
- saml_acs_urlstring
- saml_x509_certstring
Example request
POST /api /organizations /:organization_id /domains /:id /verifyExample response
Status 200 No response body
List all invites
Required API key scopes
organization_member:readPath parameters
- organization_idstring
Query parameters
- limitinteger
Number of results to return per page.
- offsetinteger
The initial index from which to return the results.
Response
Example request
GET /api /organizations /:organization_id /invitesExample response
Status 200
Create invites
Path parameters
- organization_idstring
Request parameters
- target_emailstring
- first_namestring
- level
- messagestring
- private_project_access
List of team IDs and corresponding access levels to private projects.
- send_emailbooleanDefault:
true - combine_pending_invitesbooleanDefault:
false
Response
Example request
POST /api /organizations /:organization_id /invitesExample response
Status 201
Delete invites
Path parameters
- idstring
A UUID string identifying this organization invite.
- organization_idstring
Example request
DELETE /api /organizations /:organization_id /invites /:idExample response
Status 204 No response body
Create invites bulk
Path parameters
- organization_idstring
Request parameters
- target_emailstring
- first_namestring
- level
- messagestring
- private_project_access
List of team IDs and corresponding access levels to private projects.
- send_emailbooleanDefault:
true - combine_pending_invitesbooleanDefault:
false
Example request
POST /api /organizations /:organization_id /invites /bulkExample response
Status 200 No response body
List all members
Required API key scopes
organization_member:readPath parameters
- organization_idstring
Query parameters
- limitinteger
Number of results to return per page.
- offsetinteger
The initial index from which to return the results.
Response
Example request
GET /api /organizations /:organization_id /membersExample response
Status 200
Update members
Required API key scopes
organization_member:writePath parameters
- organization_idstring
- user__uuidstring
Request parameters
- level
Response
Example request
PATCH /api /organizations /:organization_id /members /:user__uuid