> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ionworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Pipeline Element Plot Data Batch

> Return every validation plot of an element at full extent, in one response.

What the first paint of a validation section needs: one request for all objectives
rather than two per objective. Each plot is decimated to at most ``max_points`` per
trace, lowered evenly across the batch where the whole body would otherwise exceed
the batch payload cap; the served budget is returned as ``max_points`` and each plot
reports whether it is ``complete`` at that budget. Zoom into one plot through
``GET /pipelines/elements/{element_id}/plot_data``.



## OpenAPI

````yaml https://api.ionworks.com/openapi.json get /pipelines/elements/{element_id}/plot_data_batch
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://api.ionworks.com
    description: Production
security: []
paths:
  /pipelines/elements/{element_id}/plot_data_batch:
    get:
      tags:
        - Pipeline
      summary: Get Pipeline Element Plot Data Batch
      description: >-
        Return every validation plot of an element at full extent, in one
        response.


        What the first paint of a validation section needs: one request for all
        objectives

        rather than two per objective. Each plot is decimated to at most
        ``max_points`` per

        trace, lowered evenly across the batch where the whole body would
        otherwise exceed

        the batch payload cap; the served budget is returned as ``max_points``
        and each plot

        reports whether it is ``complete`` at that budget. Zoom into one plot
        through

        ``GET /pipelines/elements/{element_id}/plot_data``.
      operationId: >-
        get_pipeline_element_plot_data_batch_pipelines_elements__element_id__plot_data_batch_get
      parameters:
        - name: element_id
          in: path
          required: true
          schema:
            type: string
            title: Element Id
        - name: max_points
          in: query
          required: false
          schema:
            type: integer
            maximum: 80000
            minimum: 100
            description: Maximum points per trace
            default: 2000
            title: Max Points
          description: Maximum points per trace
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationPlotDataBatchResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ValidationPlotDataBatchResponse:
      properties:
        max_points:
          type: integer
          title: Max Points
        plots:
          items:
            $ref: '#/components/schemas/ValidationPlotDataBatchEntry'
          type: array
          title: Plots
      type: object
      required:
        - max_points
        - plots
      title: ValidationPlotDataBatchResponse
      description: >-
        Response from GET /pipelines/elements/{element_id}/plot_data_batch.


        Every plot of every objective in one body, so the first paint of a
        validation section

        is one request rather than two per objective.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationPlotDataBatchEntry:
      properties:
        type:
          anyOf:
            - type: string
            - type: 'null'
          title: Type
        traces:
          items:
            $ref: '#/components/schemas/ValidationPlotTrace'
          type: array
          title: Traces
        x_full_min:
          anyOf:
            - type: number
            - type: 'null'
          title: X Full Min
        x_full_max:
          anyOf:
            - type: number
            - type: 'null'
          title: X Full Max
        layout:
          additionalProperties: true
          type: object
          title: Layout
        objective_name:
          type: string
          title: Objective Name
        plot_index:
          type: integer
          title: Plot Index
        complete:
          type: boolean
          title: Complete
        window_rows:
          type: integer
          title: Window Rows
      type: object
      required:
        - traces
        - layout
        - objective_name
        - plot_index
        - complete
        - window_rows
      title: ValidationPlotDataBatchEntry
      description: One plot of the batch response, at full extent, naming which plot it is.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    ValidationPlotTrace:
      properties:
        name:
          type: string
          title: Name
        x:
          items:
            anyOf:
              - type: number
              - type: 'null'
          type: array
          title: X
        'y':
          items:
            anyOf:
              - type: number
              - type: 'null'
          type: array
          title: 'Y'
      type: object
      required:
        - name
        - x
        - 'y'
      title: ValidationPlotTrace
      description: Single decimated trace returned by the validation plot data endpoint.

````