PostHog batch_exports API

The batch_exports API from PostHog — 40 operation(s) for batch_exports.

OpenAPI Specification

posthog-batch-exports-api-openapi.yml Raw ↑
openapi: 3.0.3
info:
  title: PostHog actions batch_exports API
  version: 1.0.0
  description: ''
tags:
- name: batch_exports
paths:
  /api/environments/{environment_id}/batch_exports/:
    get:
      operationId: environments_batch_exports_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
      tags:
      - batch_exports
      security:
      - PersonalAPIKeyAuth:
        - batch_export:read
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedBatchExportList'
          description: ''
      deprecated: true
      x-explicit-tags:
      - batch_exports
    post:
      operationId: environments_batch_exports_create
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      tags:
      - batch_exports
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BatchExport'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/BatchExport'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/BatchExport'
        required: true
      security:
      - PersonalAPIKeyAuth:
        - batch_export:write
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchExport'
          description: ''
      deprecated: true
      x-explicit-tags:
      - batch_exports
  /api/environments/{environment_id}/batch_exports/{batch_export_id}/backfills/:
    get:
      operationId: environments_batch_exports_backfills_list
      description: 'ViewSet for BatchExportBackfill models.


        Allows creating and reading backfills, but not updating or deleting them.'
      parameters:
      - in: path
        name: batch_export_id
        schema:
          type: string
          format: uuid
          description: The BatchExport this backfill belongs to.
        required: true
      - name: cursor
        required: false
        in: query
        description: The pagination cursor value.
        schema:
          type: string
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - name: ordering
        required: false
        in: query
        description: Which field to use when ordering the results.
        schema:
          type: string
      tags:
      - batch_exports
      security:
      - PersonalAPIKeyAuth:
        - batch_export:read
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedBatchExportBackfillList'
          description: ''
      deprecated: true
      x-explicit-tags: []
    post:
      operationId: environments_batch_exports_backfills_create
      description: Create a new backfill for a BatchExport.
      parameters:
      - in: path
        name: batch_export_id
        schema:
          type: string
          format: uuid
          description: The BatchExport this backfill belongs to.
        required: true
      - $ref: '#/components/parameters/EnvironmentIdPath'
      tags:
      - batch_exports
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BatchExportBackfill'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/BatchExportBackfill'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/BatchExportBackfill'
        required: true
      security:
      - PersonalAPIKeyAuth:
        - batch_export:write
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchExportBackfill'
          description: ''
      deprecated: true
      x-explicit-tags: []
  /api/environments/{environment_id}/batch_exports/{batch_export_id}/backfills/{id}/:
    get:
      operationId: environments_batch_exports_backfills_retrieve
      description: 'ViewSet for BatchExportBackfill models.


        Allows creating and reading backfills, but not updating or deleting them.'
      parameters:
      - in: path
        name: batch_export_id
        schema:
          type: string
          format: uuid
          description: The BatchExport this backfill belongs to.
        required: true
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this batch export backfill.
        required: true
      tags:
      - batch_exports
      security:
      - PersonalAPIKeyAuth:
        - batch_export:read
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchExportBackfill'
          description: ''
      deprecated: true
      x-explicit-tags: []
  /api/environments/{environment_id}/batch_exports/{batch_export_id}/backfills/{id}/cancel/:
    post:
      operationId: environments_batch_exports_backfills_cancel_create
      description: Cancel a batch export backfill.
      parameters:
      - in: path
        name: batch_export_id
        schema:
          type: string
          format: uuid
          description: The BatchExport this backfill belongs to.
        required: true
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this batch export backfill.
        required: true
      tags:
      - batch_exports
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BatchExportBackfill'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/BatchExportBackfill'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/BatchExportBackfill'
        required: true
      security:
      - PersonalAPIKeyAuth:
        - batch_export:write
      responses:
        '200':
          description: No response body
      deprecated: true
      x-explicit-tags: []
  /api/environments/{environment_id}/batch_exports/{batch_export_id}/runs/:
    get:
      operationId: environments_batch_exports_runs_list
      parameters:
      - in: path
        name: batch_export_id
        schema:
          type: string
          format: uuid
          description: The BatchExport this run belongs to.
        required: true
      - name: cursor
        required: false
        in: query
        description: The pagination cursor value.
        schema:
          type: string
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - name: ordering
        required: false
        in: query
        description: Which field to use when ordering the results.
        schema:
          type: string
      tags:
      - batch_exports
      security:
      - PersonalAPIKeyAuth:
        - batch_export:read
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedBatchExportRunList'
          description: ''
      deprecated: true
      x-explicit-tags:
      - batch_exports
  /api/environments/{environment_id}/batch_exports/{batch_export_id}/runs/{id}/:
    get:
      operationId: environments_batch_exports_runs_retrieve
      parameters:
      - in: path
        name: batch_export_id
        schema:
          type: string
          format: uuid
          description: The BatchExport this run belongs to.
        required: true
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this batch export run.
        required: true
      tags:
      - batch_exports
      security:
      - PersonalAPIKeyAuth:
        - batch_export:read
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchExportRun'
          description: ''
      deprecated: true
      x-explicit-tags:
      - batch_exports
  /api/environments/{environment_id}/batch_exports/{batch_export_id}/runs/{id}/cancel/:
    post:
      operationId: environments_batch_exports_runs_cancel_create
      description: Cancel a batch export run.
      parameters:
      - in: path
        name: batch_export_id
        schema:
          type: string
          format: uuid
          description: The BatchExport this run belongs to.
        required: true
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this batch export run.
        required: true
      tags:
      - batch_exports
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BatchExportRun'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/BatchExportRun'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/BatchExportRun'
        required: true
      security:
      - PersonalAPIKeyAuth:
        - batch_export:write
      responses:
        '200':
          description: No response body
      deprecated: true
      x-explicit-tags:
      - batch_exports
  /api/environments/{environment_id}/batch_exports/{batch_export_id}/runs/{id}/logs/:
    get:
      operationId: environments_batch_exports_runs_logs_retrieve
      parameters:
      - in: query
        name: after
        schema:
          type: string
          format: date-time
        description: Only return entries after this ISO 8601 timestamp.
      - in: path
        name: batch_export_id
        schema:
          type: string
          format: uuid
          description: The BatchExport this run belongs to.
        required: true
      - in: query
        name: before
        schema:
          type: string
          format: date-time
        description: Only return entries before this ISO 8601 timestamp.
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this batch export run.
        required: true
      - in: query
        name: instance_id
        schema:
          type: string
          minLength: 1
        description: Filter logs to a specific execution instance.
      - in: query
        name: level
        schema:
          type: string
          minLength: 1
        description: 'Comma-separated log levels to include, e.g. ''WARN,ERROR''. Valid levels: DEBUG, LOG, INFO, WARN, ERROR.'
      - in: query
        name: limit
        schema:
          type: integer
          maximum: 500
          minimum: 1
          default: 50
        description: Maximum number of log entries to return (1-500, default 50).
      - in: query
        name: search
        schema:
          type: string
          minLength: 1
        description: Case-insensitive substring search across log messages.
      tags:
      - batch_exports
      responses:
        '200':
          description: No response body
      deprecated: true
      x-explicit-tags:
      - batch_exports
  /api/environments/{environment_id}/batch_exports/{batch_export_id}/runs/{id}/retry/:
    post:
      operationId: environments_batch_exports_runs_retry_create
      description: 'Retry a batch export run.


        We use the same underlying mechanism as when backfilling a batch export, as retrying

        a run is the same as backfilling one run.'
      parameters:
      - in: path
        name: batch_export_id
        schema:
          type: string
          format: uuid
          description: The BatchExport this run belongs to.
        required: true
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this batch export run.
        required: true
      tags:
      - batch_exports
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BatchExportRun'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/BatchExportRun'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/BatchExportRun'
        required: true
      security:
      - PersonalAPIKeyAuth:
        - batch_export:write
      responses:
        '200':
          description: No response body
      deprecated: true
      x-explicit-tags:
      - batch_exports
  /api/environments/{environment_id}/batch_exports/{id}/:
    get:
      operationId: environments_batch_exports_retrieve
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this batch export.
        required: true
      tags:
      - batch_exports
      security:
      - PersonalAPIKeyAuth:
        - batch_export:read
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchExport'
          description: ''
      deprecated: true
      x-explicit-tags:
      - batch_exports
    put:
      operationId: environments_batch_exports_update
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this batch export.
        required: true
      tags:
      - batch_exports
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BatchExport'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/BatchExport'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/BatchExport'
        required: true
      security:
      - PersonalAPIKeyAuth:
        - batch_export:write
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchExport'
          description: ''
      deprecated: true
      x-explicit-tags:
      - batch_exports
    patch:
      operationId: environments_batch_exports_partial_update
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this batch export.
        required: true
      tags:
      - batch_exports
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedBatchExport'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PatchedBatchExport'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PatchedBatchExport'
      security:
      - PersonalAPIKeyAuth:
        - batch_export:write
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchExport'
          description: ''
      deprecated: true
      x-explicit-tags:
      - batch_exports
    delete:
      operationId: environments_batch_exports_destroy
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this batch export.
        required: true
      tags:
      - batch_exports
      security:
      - PersonalAPIKeyAuth:
        - batch_export:write
      responses:
        '204':
          description: No response body
      deprecated: true
      x-explicit-tags:
      - batch_exports
  /api/environments/{environment_id}/batch_exports/{id}/logs/:
    get:
      operationId: environments_batch_exports_logs_retrieve
      parameters:
      - in: query
        name: after
        schema:
          type: string
          format: date-time
        description: Only return entries after this ISO 8601 timestamp.
      - in: query
        name: before
        schema:
          type: string
          format: date-time
        description: Only return entries before this ISO 8601 timestamp.
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this batch export.
        required: true
      - in: query
        name: instance_id
        schema:
          type: string
          minLength: 1
        description: Filter logs to a specific execution instance.
      - in: query
        name: level
        schema:
          type: string
          minLength: 1
        description: 'Comma-separated log levels to include, e.g. ''WARN,ERROR''. Valid levels: DEBUG, LOG, INFO, WARN, ERROR.'
      - in: query
        name: limit
        schema:
          type: integer
          maximum: 500
          minimum: 1
          default: 50
        description: Maximum number of log entries to return (1-500, default 50).
      - in: query
        name: search
        schema:
          type: string
          minLength: 1
        description: Case-insensitive substring search across log messages.
      tags:
      - batch_exports
      responses:
        '200':
          description: No response body
      deprecated: true
      x-explicit-tags:
      - batch_exports
  /api/environments/{environment_id}/batch_exports/{id}/pause/:
    post:
      operationId: environments_batch_exports_pause_create
      description: Pause a BatchExport.
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this batch export.
        required: true
      tags:
      - batch_exports
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BatchExport'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/BatchExport'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/BatchExport'
        required: true
      security:
      - PersonalAPIKeyAuth:
        - batch_export:write
      responses:
        '200':
          description: No response body
      deprecated: true
      x-explicit-tags:
      - batch_exports
  /api/environments/{environment_id}/batch_exports/{id}/run_test_step/:
    post:
      operationId: environments_batch_exports_run_test_step_create
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this batch export.
        required: true
      tags:
      - batch_exports
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BatchExport'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/BatchExport'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/BatchExport'
        required: true
      security:
      - PersonalAPIKeyAuth:
        - batch_export:write
      responses:
        '200':
          description: No response body
      deprecated: true
      x-explicit-tags:
      - batch_exports
  /api/environments/{environment_id}/batch_exports/{id}/unpause/:
    post:
      operationId: environments_batch_exports_unpause_create
      description: Unpause a BatchExport.
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this batch export.
        required: true
      tags:
      - batch_exports
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BatchExport'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/BatchExport'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/BatchExport'
        required: true
      security:
      - PersonalAPIKeyAuth:
        - batch_export:write
      responses:
        '200':
          description: No response body
      deprecated: true
      x-explicit-tags:
      - batch_exports
  /api/environments/{environment_id}/batch_exports/run_test_step_new/:
    post:
      operationId: environments_batch_exports_run_test_step_new_create
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      tags:
      - batch_exports
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BatchExport'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/BatchExport'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/BatchExport'
        required: true
      security:
      - PersonalAPIKeyAuth:
        - batch_export:write
      responses:
        '200':
          description: No response body
      deprecated: true
      x-explicit-tags:
      - batch_exports
  /api/environments/{environment_id}/batch_exports/test/:
    get:
      operationId: environments_batch_exports_test_retrieve
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      tags:
      - batch_exports
      security:
      - PersonalAPIKeyAuth:
        - batch_export:read
      responses:
        '200':
          description: No response body
      deprecated: true
      x-explicit-tags:
      - batch_exports
  /api/organizations/{organization_id}/batch_exports/:
    get:
      operationId: org_organizations_batch_exports_list
      parameters:
      - 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
      - $ref: '#/components/parameters/OrganizationIdPath'
      tags:
      - batch_exports
      security:
      - PersonalAPIKeyAuth:
        - batch_export:read
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedBatchExportList'
          description: ''
      x-explicit-tags:
      - batch_exports
      deprecated: true
    post:
      operationId: org_organizations_batch_exports_create
      parameters:
      - $ref: '#/components/parameters/OrganizationIdPath'
      tags:
      - batch_exports
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BatchExport'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/BatchExport'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/BatchExport'
        required: true
      security:
      - PersonalAPIKeyAuth:
        - batch_export:write
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchExport'
          description: ''
      x-explicit-tags:
      - batch_exports
      deprecated: true
  /api/organizations/{organization_id}/batch_exports/{id}/:
    get:
      operationId: org_organizations_batch_exports_retrieve
      parameters:
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this batch export.
        required: true
      - $ref: '#/components/parameters/OrganizationIdPath'
      tags:
      - batch_exports
      security:
      - PersonalAPIKeyAuth:
        - batch_export:read
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchExport'
          description: ''
      x-explicit-tags:
      - batch_exports
      deprecated: true
    put:
      operationId: org_organizations_batch_exports_update
      parameters:
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this batch export.
        required: true
      - $ref: '#/components/parameters/OrganizationIdPath'
      tags:
      - batch_exports
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BatchExport'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/BatchExport'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/BatchExport'
        required: true
      security:
      - PersonalAPIKeyAuth:
        - batch_export:write
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchExport'
          description: ''
      x-explicit-tags:
      - batch_exports
      deprecated: true
    patch:
      operationId: org_organizations_batch_exports_partial_update
      parameters:
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this batch export.
        required: true
      - $ref: '#/components/parameters/OrganizationIdPath'
      tags:
      - batch_exports
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedBatchExport'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PatchedBatchExport'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PatchedBatchExport'
      security:
      - PersonalAPIKeyAuth:
        - batch_export:write
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchExport'
          description: ''
      x-explicit-tags:
      - batch_exports
      deprecated: true
    delete:
      operationId: org_organizations_batch_exports_destroy
      parameters:
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this batch export.
        required: true
      - $ref: '#/components/parameters/OrganizationIdPath'
      tags:
      - batch_exports
      security:
      - PersonalAPIKeyAuth:
        - batch_export:write
      responses:
        '204':
          description: No response body
      x-explicit-tags:
      - batch_exports
      deprecated: true
  /api/organizations/{organization_id}/batch_exports/{id}/logs/:
    get:
      operationId: org_organizations_batch_exports_logs_retrieve
      parameters:
      - in: query
        name: after
        schema:
          type: string
          format: date-time
        description: Only return entries after this ISO 8601 timestamp.
      - in: query
        name: before
        schema:
          type: string
          format: date-time
        description: Only return entries before this ISO 8601 timestamp.
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this batch export.
        required: true
      - in: query
        name: instance_id
        schema:
          type: string
          minLength: 1
        description: Filter logs to a specific execution instance.
      - in: query
        name: level
        schema:
          type: string
          minLength: 1
        description: 'Comma-separated log levels to include, e.g. ''WARN,ERROR''. Valid levels: DEBUG, LOG, INFO, WARN, ERROR.'
      - in: query
        name: limit
        schema:
          type: integer
          maximum: 500
          minimum: 1
          default: 50
        description: Maximum number of log entries to return (1-500, default 50).
      - $ref: '#/components/parameters/OrganizationIdPath'
      - in: query
        name: search
        schema:
          type: string
          minLength: 1
        description: Case-insensitive substring search across log messages.
      tags:
      - batch_exports
      responses:
        '200':
          description: No response body
      x-explicit-tags:
      - batch_exports
      deprecated: true
  /api/organizations/{organization_id}/batch_exports/{id}/pause/:
    post:
      operationId: org_organizations_batch_exports_pause_create
      description: Pause a BatchExport.
      parameters:
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this batch export.
        required: true
      - $ref: '#/components/parameters/OrganizationIdPath'
      tags:
      - batch_exports
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BatchExport'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/BatchExport'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/BatchExport'
        required: true
      security:
      - PersonalAPIKeyAuth:
        - batch_export:write
      responses:
        '200':
          description: No response body
      x-explicit-tags:
      - batch_exports
      deprecated: true
  /api/organizations/{organization_id}/batch_exports/{id}/run_test_step/:
    post:
      operationId: org_organizations_batch_exports_run_test_step_create
      parameters:
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this batch export.
        required: true
      - $ref: '#/components/parameters/OrganizationIdPath'
      tags:
      - batch_exports
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BatchExport'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/BatchExport'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/BatchExport'
        required: true
      security:
      - PersonalAPIKeyAuth:
        - batch_export:write
      responses:
        '200':
          description: No response body
      x-explicit-tags:
      - batch_exports
      deprecated: true
  /api/organizations/{organization_id}/batch_exports/{id}/unpause/:
    post:
      operationId: org_organizations_batch_exports_unpause_create
      description: Unpause a BatchExport.
      parameters:
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: 

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