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 /logs
Example response
Status 200 No response body
Create batch exports pause
Pause a BatchExport.
Required API key scopes
batch_export:write
Path 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 /pause
Example response
Status 200 No response body
Create batch exports run test step
Required API key scopes
INTERNAL
Path 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_step
Example response
Status 200 No response body
Create batch exports unpause
Unpause a BatchExport.
Required API key scopes
batch_export:write
Path 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 /unpause
Example response
Status 200 No response body
Create batch exports run test step new
Required API key scopes
INTERNAL
Path 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_new
Example response
Status 200 No response body
Retrieve batch exports test
Required API key scopes
INTERNAL
Path parameters
- organization_idstring
Example request
GET
/api /organizations /:organization_id /batch_exports /test
Example response
Status 200 No response body
List all domains
Required API key scopes
organization:read
Path 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 /domains
Example response
Status 200
Create domains
Required API key scopes
organization:write
Path 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 /domains
Example response
Status 201
Retrieve domains
Required API key scopes
organization:read
Path parameters
- idstring
A UUID string identifying this domain.
- organization_idstring
Response
Example request
GET
/api /organizations /:organization_id /domains /:id
Example response
Status 200
Update domains
Required API key scopes
organization:write
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
Response
Example request
PATCH
/api /organizations /:organization_id /domains /:id
Example response
Status 200
Delete domains
Required API key scopes
organization:write
Path parameters
- idstring
A UUID string identifying this domain.
- organization_idstring
Example request
DELETE
/api /organizations /:organization_id /domains /:id
Example 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 /verify
Example response
Status 200 No response body
List all invites
Required API key scopes
organization_member:read
Path 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 /invites
Example 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 /invites
Example 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 /:id
Example 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 /bulk
Example response
Status 200 No response body
List all members
Required API key scopes
organization_member:read
Path 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 /members
Example response
Status 200
Update members
Required API key scopes
organization_member:write
Path parameters
- organization_idstring
- user__uuidstring
Request parameters
- level
Response
Example request
PATCH
/api /organizations /:organization_id /members /:user__uuid