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

# Confirm a signed URL upload and finalize the measurement

> Confirm a signed URL upload and finalize the measurement.



## OpenAPI

````yaml https://api.ionworks.com/openapi.json post /cell_measurements/{measurement_id}/confirm-upload
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://api.ionworks.com
    description: Production
security: []
paths:
  /cell_measurements/{measurement_id}/confirm-upload:
    post:
      tags:
        - Cell Measurements
      summary: Confirm a signed URL upload and finalize the measurement
      description: Confirm a signed URL upload and finalize the measurement.
      operationId: >-
        confirm_measurement_upload_cell_measurements__measurement_id__confirm_upload_post
      parameters:
        - name: measurement_id
          in: path
          required: true
          schema:
            type: string
            title: Measurement Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConfirmUploadRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateMeasurementResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ConfirmUploadRequest:
      properties:
        cell_instance_id:
          type: string
          title: Cell Instance Id
          description: Parent cell instance ID
        measurement:
          additionalProperties: true
          type: object
          title: Measurement
          description: Measurement data with custom fields
        measurement_type:
          $ref: '#/components/schemas/MeasurementType'
          description: Type of measurement being confirmed.
          default: time_series
        steps:
          additionalProperties: true
          type: object
          title: Steps
          description: Optional steps. Auto-calculated from time series if omitted
        filenames:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Filenames
          description: >-
            Filenames that were uploaded (for file-type measurements). When
            provided, skips the slow storage listing verification.
      type: object
      required:
        - cell_instance_id
        - measurement
      title: ConfirmUploadRequest
      description: Request model for confirming a signed URL upload.
    CreateMeasurementResponse:
      properties:
        name:
          type: string
          maxLength: 255
          minLength: 1
          title: Name
        protocol:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Protocol
          description: >-
            Protocol information. Typical keys: 'name' (str),
            'ambient_temperature_degc' (float), 'definition' (dict | str — a UCP
            protocol definition or another protocol format).
        start_time:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Start Time
          description: >-
            ISO 8601 datetime with timezone (UTC preferred) marking when the
            test started.
        end_time:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: End Time
          description: >-
            ISO 8601 datetime with timezone (UTC preferred) marking when the
            test finished. Leave null while the test is still running; set it
            once the measurement is complete. A null end_time means the cell is
            still considered 'on test' in the Lab view.
        test_setup:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Test Setup
          description: >-
            Physical test setup. Typical keys: 'cycler' (model), 'operator',
            'lab', 'channel_number' (int).
        step_labels_validated:
          type: boolean
          title: Step Labels Validated
          description: >-
            Set to true only once step-type labels (Rest, CC charge, CV,
            discharge, etc.) have been manually reviewed. Server-inferred labels
            should leave this false.
          default: false
        notes:
          anyOf:
            - type: string
            - type: 'null'
          title: Notes
          description: Free-text notes about the cell measurement
        measurement_type:
          $ref: '#/components/schemas/MeasurementType'
          description: >-
            What shape of data this measurement holds. Determines which fields
            are populated and which upload flow applies. See the class
            docstring.
          default: time_series
        properties:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Properties
          description: >-
            Flat key/value measurements, populated only when measurement_type is
            'properties'. Numeric values use the Quantity format. Example:
            {'thickness': {'value': 0.52, 'unit': 'mm'}, 'DCIR': {'value': 12,
            'unit': 'mohm'}}.
        file_metadata:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: File Metadata
          description: Metadata about uploaded files (MIME types, dimensions, etc.)
        channel_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Channel Id
          description: Optional ID of the channel this measurement ran on.
        id:
          type: string
          title: Id
        cell_instance_id:
          type: string
          title: Cell Instance Id
        organization_id:
          type: string
          title: Organization Id
          description: Organization this measurement belongs to.
        project_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Project Id
          description: Project this measurement belongs to
        created_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Created By
          description: User ID of the user who created this measurement
        created_by_email:
          anyOf:
            - type: string
            - type: 'null'
          title: Created By Email
          description: Email of the user who created this measurement
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        instance:
          $ref: '#/components/schemas/CellInstance'
        steps_created:
          type: integer
          title: Steps Created
      type: object
      required:
        - name
        - id
        - cell_instance_id
        - organization_id
        - created_at
        - updated_at
        - instance
        - steps_created
      title: CreateMeasurementResponse
      description: >-
        Flat response after confirming a signed URL upload.


        Measurement fields (id, name, measurement_type, etc.) are at the top
        level,

        alongside the parent instance and upload metadata.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    MeasurementType:
      type: string
      enum:
        - time_series
        - file
        - properties
      title: MeasurementType
      description: |-
        Shape of the data stored in a cell measurement.

        - ``time_series`` — cycling / diagnostic data uploaded as columnar
          time series (and optional step summaries). Default for new
          measurements.
        - ``file`` — an opaque file upload (raw cycler export, image, other
          binary). Metadata about the file is captured in
          ``file_metadata``; the file content lives in object storage.
        - ``properties`` — a flat key/value set of measured properties
          (thickness, mass, DCIR, initial capacity, …) with no time-series
          data. Numeric values use the Quantity format.
    CellInstance:
      properties:
        name:
          type: string
          title: Name
          description: Name of the cell instance (serial number)
        batch:
          anyOf:
            - type: string
            - type: 'null'
          title: Batch
          description: Batch number/identifier
        date_manufactured:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Date Manufactured
          description: Date of manufacture
        measured_properties:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Measured Properties
          description: >-
            Measured (not designed) properties of this specific cell, grouped by
            component. Numeric values use the Quantity format. Example:
            {'cathode': {'loading': {'value': 7.06, 'unit': 'mg.cm-2'}}, 'cell':
            {'initial_capacity': {'value': 1.08, 'unit': 'A.h'}}}. Designed
            properties (target loading, rated capacity) belong on the cell
            specification.
        notes:
          anyOf:
            - type: string
            - type: 'null'
          title: Notes
          description: Free-text notes about the cell instance
        id:
          type: string
          title: Id
          description: Unique identifier for the cell instance
        cell_specification_id:
          type: string
          title: Cell Specification Id
          description: Foreign key to the cell specification
        organization_id:
          type: string
          title: Organization Id
          description: Organization this cell instance belongs to.
        project_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Project Id
          description: Project this cell instance belongs to
        created_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Created By
          description: User ID of the user who created this instance
        created_by_email:
          anyOf:
            - type: string
            - type: 'null'
          title: Created By Email
          description: Email of the user who created this instance
        created_at:
          type: string
          format: date-time
          title: Created At
          description: Timestamp when the instance was created
        updated_at:
          type: string
          format: date-time
          title: Updated At
          description: Timestamp when the instance was last updated
        measurement_ids:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: Measurement Ids
          description: List of measurement IDs associated with the cell instance
      type: object
      required:
        - name
        - id
        - cell_specification_id
        - organization_id
        - created_at
        - updated_at
      title: CellInstance
      description: Model representing a cell instance as returned by the API.
    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

````