> ## 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.

# Run validation simulations for measurements

> Submit drive-cycle validation simulations for one or more measurements.

Each measurement is processed independently. Partial success is returned
when some measurements fail (e.g. missing columns) but at least one
succeeds. A 400 error is raised only if every measurement fails.



## OpenAPI

````yaml https://api.ionworks.com/openapi.json post /projects/{project_id}/studies/{study_id}/validate
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://api.ionworks.com
    description: Production
security: []
paths:
  /projects/{project_id}/studies/{study_id}/validate:
    post:
      tags:
        - study-validation
      summary: Run validation simulations for measurements
      description: |-
        Submit drive-cycle validation simulations for one or more measurements.

        Each measurement is processed independently. Partial success is returned
        when some measurements fail (e.g. missing columns) but at least one
        succeeds. A 400 error is raised only if every measurement fails.
      operationId: >-
        validate_study_measurements_projects__project_id__studies__study_id__validate_post
      parameters:
        - name: study_id
          in: path
          required: true
          schema:
            type: string
            title: Study Id
        - name: project_id
          in: path
          required: true
          schema:
            type: string
            title: Project Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ValidateRequest'
      responses:
        '202':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidateResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ValidateRequest:
      properties:
        measurement_ids:
          items:
            type: string
          type: array
          minItems: 1
          title: Measurement Ids
          description: IDs of measurements to validate
        parameterized_model_id:
          type: string
          title: Parameterized Model Id
          description: ID of the parameterized model to simulate
        cell_specification_id:
          type: string
          title: Cell Specification Id
          description: ID of the cell specification (for model ownership verification)
        start_step:
          anyOf:
            - type: integer
            - type: 'null'
          title: Start Step
          description: First step index to include (inclusive)
        end_step:
          anyOf:
            - type: integer
            - type: 'null'
          title: End Step
          description: Last step index to include (inclusive)
        initial_voltage:
          anyOf:
            - type: number
            - type: 'null'
          title: Initial Voltage
          description: Custom initial voltage [V]. Overrides auto-detection.
        initial_soc:
          anyOf:
            - type: number
            - type: 'null'
          title: Initial Soc
          description: Custom initial SOC (0-1). Overrides voltage-based init.
      type: object
      required:
        - measurement_ids
        - parameterized_model_id
        - cell_specification_id
      title: ValidateRequest
      description: Payload for the POST validate endpoint.
    ValidateResponse:
      properties:
        validations:
          items:
            $ref: >-
              #/components/schemas/src__routes__study_validation__ValidationResult
          type: array
          title: Validations
        errors:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Errors
        skipped:
          items:
            type: string
          type: array
          title: Skipped
          description: >-
            Measurement IDs skipped because an identical validation already
            exists
      type: object
      title: ValidateResponse
      description: Aggregated result of a batch validation request.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    src__routes__study_validation__ValidationResult:
      properties:
        measurement_id:
          type: string
          title: Measurement Id
        simulation_id:
          type: string
          title: Simulation Id
        job_id:
          type: string
          title: Job Id
      type: object
      required:
        - measurement_id
        - simulation_id
        - job_id
      title: ValidationResult
      description: A single successful validation submission.
    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

````