PostHog data_warehouse API

The data_warehouse API from PostHog — 110 operation(s) for data_warehouse.

OpenAPI Specification

posthog-data-warehouse-api-openapi.yml Raw ↑
openapi: 3.0.3
info:
  title: PostHog actions data_warehouse API
  version: 1.0.0
  description: ''
tags:
- name: data_warehouse
paths:
  /api/environments/{environment_id}/data_modeling_jobs/:
    get:
      operationId: environments_data_modeling_jobs_list
      description: List data modeling jobs which are "runs" for our saved queries.
      parameters:
      - name: cursor
        required: false
        in: query
        description: The pagination cursor value.
        schema:
          type: string
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - name: limit
        required: false
        in: query
        description: Number of results to return per page.
        schema:
          type: integer
      - in: query
        name: saved_query_id
        schema:
          type: string
          format: uuid
      tags:
      - data_warehouse
      security:
      - PersonalAPIKeyAuth:
        - warehouse_view:read
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedDataModelingJobList'
          description: ''
      deprecated: true
      x-explicit-tags:
      - data_warehouse
  /api/environments/{environment_id}/data_modeling_jobs/{id}/:
    get:
      operationId: environments_data_modeling_jobs_retrieve
      description: List data modeling jobs which are "runs" for our saved queries.
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this data modeling job.
        required: true
      tags:
      - data_warehouse
      security:
      - PersonalAPIKeyAuth:
        - warehouse_view:read
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataModelingJob'
          description: ''
      deprecated: true
      x-explicit-tags:
      - data_warehouse
  /api/environments/{environment_id}/data_modeling_jobs/recent/:
    get:
      operationId: environments_data_modeling_jobs_recent_retrieve
      description: Get the most recent non-running job for each saved query from the v2 backend.
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      tags:
      - data_warehouse
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataModelingJob'
          description: ''
      deprecated: true
      x-explicit-tags:
      - data_warehouse
  /api/environments/{environment_id}/data_modeling_jobs/running/:
    get:
      operationId: environments_data_modeling_jobs_running_retrieve
      description: Get all currently running jobs from the v2 backend.
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      tags:
      - data_warehouse
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataModelingJob'
          description: ''
      deprecated: true
      x-explicit-tags:
      - data_warehouse
  /api/environments/{environment_id}/data_warehouse/check-database-name/:
    get:
      operationId: environments_data_warehouse_check_database_name_retrieve
      description: Check if a database name is available.
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: query
        name: name
        schema:
          type: string
          minLength: 1
        description: Database name to check
        required: true
      tags:
      - data_warehouse
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CheckDatabaseNameResponse'
          description: ''
      deprecated: true
      x-explicit-tags:
      - data_warehouse
  /api/environments/{environment_id}/data_warehouse/completed_activity/:
    get:
      operationId: environments_data_warehouse_completed_activity_retrieve
      description: 'Returns completed/non-running activities (jobs with status ''Completed'').

        Supports pagination and cutoff time filtering.'
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      tags:
      - data_warehouse
      responses:
        '200':
          description: No response body
      deprecated: true
      x-explicit-tags:
      - data_warehouse
  /api/environments/{environment_id}/data_warehouse/data_health_issues/:
    get:
      operationId: environments_data_warehouse_data_health_issues_retrieve
      description: 'Returns failed/disabled data pipeline items for the Pipeline status side panel.

        Includes: materializations, syncs, sources, destinations, and transformations.'
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      tags:
      - data_warehouse
      responses:
        '200':
          description: No response body
      deprecated: true
      x-explicit-tags:
      - data_warehouse
  /api/environments/{environment_id}/data_warehouse/data_ops_dashboard/:
    get:
      operationId: environments_data_warehouse_data_ops_dashboard_retrieve
      description: Returns the data ops overview dashboard ID for this team, creating it if it doesn't exist yet.
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      tags:
      - data_warehouse
      security:
      - PersonalAPIKeyAuth:
        - warehouse_view:write
      responses:
        '200':
          description: No response body
      deprecated: true
      x-explicit-tags:
      - data_warehouse
  /api/environments/{environment_id}/data_warehouse/deprovision/:
    post:
      operationId: environments_data_warehouse_deprovision_create
      description: Start deprovisioning the managed warehouse for this team.
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      tags:
      - data_warehouse
      security:
      - PersonalAPIKeyAuth:
        - warehouse_view:write
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeprovisionWarehouseResponse'
          description: ''
      deprecated: true
      x-explicit-tags:
      - data_warehouse
  /api/environments/{environment_id}/data_warehouse/job_stats/:
    get:
      operationId: environments_data_warehouse_job_stats_retrieve
      description: 'Returns success and failed job statistics for the last 1, 7, or 30 days.

        Query parameter ''days'' can be 1, 7, or 30 (default: 7).'
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      tags:
      - data_warehouse
      responses:
        '200':
          description: No response body
      deprecated: true
      x-explicit-tags:
      - data_warehouse
  /api/environments/{environment_id}/data_warehouse/property_values/:
    get:
      operationId: environments_data_warehouse_property_values_retrieve
      description: API endpoints for data warehouse aggregate statistics and operations.
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      tags:
      - data_warehouse
      security:
      - PersonalAPIKeyAuth:
        - query:read
      responses:
        '200':
          description: No response body
      deprecated: true
      x-explicit-tags:
      - data_warehouse
  /api/environments/{environment_id}/data_warehouse/provision/:
    post:
      operationId: environments_data_warehouse_provision_create
      description: Start provisioning a managed warehouse for this team.
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      tags:
      - data_warehouse
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProvisionWarehouseRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/ProvisionWarehouseRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/ProvisionWarehouseRequest'
        required: true
      security:
      - PersonalAPIKeyAuth:
        - warehouse_view:write
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProvisionWarehouseResponse'
          description: ''
      deprecated: true
      x-explicit-tags:
      - data_warehouse
  /api/environments/{environment_id}/data_warehouse/reset-password/:
    post:
      operationId: environments_data_warehouse_reset_password_create
      description: Reset the root password for the managed warehouse.
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      tags:
      - data_warehouse
      security:
      - PersonalAPIKeyAuth:
        - warehouse_view:write
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResetPasswordResponse'
          description: ''
      deprecated: true
      x-explicit-tags:
      - data_warehouse
  /api/environments/{environment_id}/data_warehouse/running_activity/:
    get:
      operationId: environments_data_warehouse_running_activity_retrieve
      description: 'Returns currently running activities (jobs with status ''Running'').

        Supports pagination and cutoff time filtering.'
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      tags:
      - data_warehouse
      responses:
        '200':
          description: No response body
      deprecated: true
      x-explicit-tags:
      - data_warehouse
  /api/environments/{environment_id}/data_warehouse/total_rows_stats/:
    get:
      operationId: environments_data_warehouse_total_rows_stats_retrieve
      description: 'Returns aggregated statistics for the data warehouse total rows processed within the current billing period.

        Used by the frontend data warehouse scene to display usage information.'
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      tags:
      - data_warehouse
      responses:
        '200':
          description: No response body
      deprecated: true
      x-explicit-tags:
      - data_warehouse
  /api/environments/{environment_id}/data_warehouse/warehouse_status/:
    get:
      operationId: environments_data_warehouse_warehouse_status_retrieve
      description: Get the current provisioning status of the managed warehouse.
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      tags:
      - data_warehouse
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WarehouseStatusResponse'
          description: ''
      deprecated: true
      x-explicit-tags:
      - data_warehouse
  /api/environments/{environment_id}/external_data_schemas/:
    get:
      operationId: environments_external_data_schemas_list
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - name: limit
        required: false
        in: query
        description: Number of results to return per page.
        schema:
          type: integer
      - name: offset
        required: false
        in: query
        description: The initial index from which to return the results.
        schema:
          type: integer
      - name: search
        required: false
        in: query
        description: A search term.
        schema:
          type: string
      tags:
      - data_warehouse
      security:
      - PersonalAPIKeyAuth:
        - external_data_source:read
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedExternalDataSchemaList'
          description: ''
      deprecated: true
      x-explicit-tags:
      - data_warehouse
    post:
      operationId: environments_external_data_schemas_create
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      tags:
      - data_warehouse
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExternalDataSchema'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/ExternalDataSchema'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/ExternalDataSchema'
      security:
      - PersonalAPIKeyAuth:
        - external_data_source:write
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalDataSchema'
          description: ''
      deprecated: true
      x-explicit-tags:
      - data_warehouse
  /api/environments/{environment_id}/external_data_schemas/{id}/:
    get:
      operationId: environments_external_data_schemas_retrieve
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this external data schema.
        required: true
      tags:
      - data_warehouse
      security:
      - PersonalAPIKeyAuth:
        - external_data_source:read
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalDataSchema'
          description: ''
      deprecated: true
      x-explicit-tags:
      - data_warehouse
    put:
      operationId: environments_external_data_schemas_update
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this external data schema.
        required: true
      tags:
      - data_warehouse
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExternalDataSchema'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/ExternalDataSchema'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/ExternalDataSchema'
      security:
      - PersonalAPIKeyAuth:
        - external_data_source:write
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalDataSchema'
          description: ''
      deprecated: true
      x-explicit-tags:
      - data_warehouse
    patch:
      operationId: environments_external_data_schemas_partial_update
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this external data schema.
        required: true
      tags:
      - data_warehouse
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedExternalDataSchema'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PatchedExternalDataSchema'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PatchedExternalDataSchema'
      security:
      - PersonalAPIKeyAuth:
        - external_data_source:write
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalDataSchema'
          description: ''
      deprecated: true
      x-explicit-tags:
      - data_warehouse
    delete:
      operationId: environments_external_data_schemas_destroy
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this external data schema.
        required: true
      tags:
      - data_warehouse
      security:
      - PersonalAPIKeyAuth:
        - external_data_source:write
      responses:
        '204':
          description: No response body
      deprecated: true
      x-explicit-tags:
      - data_warehouse
  /api/environments/{environment_id}/external_data_schemas/{id}/cancel/:
    post:
      operationId: environments_external_data_schemas_cancel_create
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this external data schema.
        required: true
      tags:
      - data_warehouse
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExternalDataSchema'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/ExternalDataSchema'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/ExternalDataSchema'
      security:
      - PersonalAPIKeyAuth:
        - external_data_source:write
      responses:
        '200':
          description: No response body
      deprecated: true
      x-explicit-tags:
      - data_warehouse
  /api/environments/{environment_id}/external_data_schemas/{id}/delete_data/:
    delete:
      operationId: environments_external_data_schemas_delete_data_destroy
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this external data schema.
        required: true
      tags:
      - data_warehouse
      security:
      - PersonalAPIKeyAuth:
        - external_data_source:write
      responses:
        '204':
          description: No response body
      deprecated: true
      x-explicit-tags:
      - data_warehouse
  /api/environments/{environment_id}/external_data_schemas/{id}/incremental_fields/:
    post:
      operationId: environments_external_data_schemas_incremental_fields_create
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this external data schema.
        required: true
      tags:
      - data_warehouse
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExternalDataSchema'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/ExternalDataSchema'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/ExternalDataSchema'
      security:
      - PersonalAPIKeyAuth:
        - external_data_source:write
      responses:
        '200':
          description: No response body
      deprecated: true
      x-explicit-tags:
      - data_warehouse
  /api/environments/{environment_id}/external_data_schemas/{id}/reload/:
    post:
      operationId: environments_external_data_schemas_reload_create
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this external data schema.
        required: true
      tags:
      - data_warehouse
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExternalDataSchema'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/ExternalDataSchema'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/ExternalDataSchema'
      security:
      - PersonalAPIKeyAuth:
        - external_data_source:write
      responses:
        '200':
          description: No response body
      deprecated: true
      x-explicit-tags:
      - data_warehouse
  /api/environments/{environment_id}/external_data_schemas/{id}/resync/:
    post:
      operationId: environments_external_data_schemas_resync_create
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this external data schema.
        required: true
      tags:
      - data_warehouse
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExternalDataSchema'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/ExternalDataSchema'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/ExternalDataSchema'
      security:
      - PersonalAPIKeyAuth:
        - external_data_source:write
      responses:
        '200':
          description: No response body
      deprecated: true
      x-explicit-tags:
      - data_warehouse
  /api/environments/{environment_id}/external_data_sources/:
    get:
      operationId: environments_external_data_sources_list
      description: Create, Read, Update and Delete External data Sources.
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - name: limit
        required: false
        in: query
        description: Number of results to return per page.
        schema:
          type: integer
      - name: offset
        required: false
        in: query
        description: The initial index from which to return the results.
        schema:
          type: integer
      - name: search
        required: false
        in: query
        description: A search term.
        schema:
          type: string
      tags:
      - data_warehouse
      security:
      - PersonalAPIKeyAuth:
        - external_data_source:read
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedExternalDataSourceSerializersList'
          description: ''
      deprecated: true
      x-explicit-tags:
      - data_warehouse
    post:
      operationId: environments_external_data_sources_create
      description: Create, Read, Update and Delete External data Sources.
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      tags:
      - data_warehouse
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExternalDataSourceCreate'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/ExternalDataSourceCreate'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/ExternalDataSourceCreate'
        required: true
      security:
      - PersonalAPIKeyAuth:
        - external_data_source:write
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalDataSourceSerializers'
          description: ''
      deprecated: true
      x-explicit-tags:
      - data_warehouse
  /api/environments/{environment_id}/external_data_sources/{id}/:
    get:
      operationId: environments_external_data_sources_retrieve
      description: Create, Read, Update and Delete External data Sources.
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this external data source.
        required: true
      tags:
      - data_warehouse
      security:
      - PersonalAPIKeyAuth:
        - external_data_source:read
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalDataSourceSerializers'
          description: ''
      deprecated: true
      x-explicit-tags:
      - data_warehouse
    put:
      operationId: environments_external_data_sources_update
      description: Create, Read, Update and Delete External data Sources.
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this external data source.
        required: true
      tags:
      - data_warehouse
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExternalDataSourceSerializers'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/ExternalDataSourceSerializers'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/ExternalDataSourceSerializers'
        required: true
      security:
      - PersonalAPIKeyAuth:
        - external_data_source:write
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalDataSourceSerializers'
          description: ''
      deprecated: true
      x-explicit-tags:
      - data_warehouse
    patch:
      operationId: environments_external_data_sources_partial_update
      description: Create, Read, Update and Delete External data Sources.
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this external data source.
        required: true
      tags:
      - data_warehouse
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedExternalDataSourceSerializers'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PatchedExternalDataSourceSerializers'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PatchedExternalDataSourceSerializers'
      security:
      - PersonalAPIKeyAuth:
        - external_data_source:write
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalDataSourceSerializers'
          description: ''
      deprecated: true
      x-explicit-tags:
      - data_warehouse
    delete:
      operationId: environments_external_data_sources_destroy
      description: Create, Read, Update and Delete External data Sources.
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this external data source.
        required: true
      tags:
      - data_warehouse
      security:
      - PersonalAPIKeyAuth:
        - external_data_source:write
      responses:
        '204':
          description: No response body
      deprecated: true
      x-explicit-tags:
      - data_warehouse
  /api/environments/{environment_id}/external_data_sources/{id}/bulk_update_schemas/:
    patch:
      operationId: environments_external_data_sources_bulk_update_schemas_partial_update
      description: Create, Read, Update and Delete External data Sources.
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this external data source.
        required: true
      - name: limit
        required: false
        in: query
        description: Number of results to return per page.
        schema:
          type: integer
      - name: offset
        required: false
        in: query
        description: The initial index from which to return the results.
        schema:
          type: integer
      - name: search
        required: false
        in: query
        description: A search term.
        schema:
          type: string
      tags:
      - data_warehouse
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedExternalDataSourceBulkUpdateSchemas'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PatchedExternalDataSourceBulkUpdateSchemas'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PatchedExternalDataSourceBulkUpdateSchemas'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedExternalDataSchemaList'
          description: ''
      deprecated: true
      x-explicit-tags:
      - data_warehouse
  /api/environments/{environment_id}/external_data_sources/{id}/create_webhook/:
    post:
      operationId: environments_external_data_sources_create_webhook_create
      description: Create, Read, Update and Delete External data Sources.
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this external data source.
        required: true
      tags:
      - data_warehouse
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExternalDataSourceSerializers'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/ExternalDataSourceSerializers'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/ExternalDataSourceSerializers'
        required: true
      security:
      - PersonalAPIKeyAuth:
        - external_data_source:write
      responses:
        '200':
          description: No response body
      deprecated: true
      x-explicit-tags:
      - data_warehouse
  /api/environments/{environment_id}/external_data_sources/{id}/delete_webhook/:
    post:
      operationId: environments_external_data_sources_delete_webhook_create
      description: Create, Read, Update and Delete External data Sources.
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this external data source.
        required: true
      tags:
      - data_warehouse
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExternalDataSourceSerializers'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/ExternalDataSourceSerializers'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/ExternalDataSourceSerializers'
        required: true
      security:
      - PersonalAPIKeyAuth:
        - external_data_source:write
      responses:
        '200':
          description: No response body
      deprecated: true
      x-explicit-tags:
      - data_warehouse
  /api/environments/{environment_id}/external_data_sources/{id}/jobs/:
    get:
      operationId: environments_external_data_sources_jobs_retrieve
      description: Create, Read, Update and Delete External data Sources.
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this external data source.
        required: true
      tags:
      - data_warehouse
      security:
      - PersonalAPIKeyAuth:
        - external_data_source:read
      responses:
        '200':
          description: No re

# --- truncated at 32 KB (199 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/posthog/refs/heads/main/openapi/posthog-data-warehouse-api-openapi.yml