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

# Update a specific cell instance by id

> Updates an existing cell instance identified by its ID.
Only provided fields will be updated.



## OpenAPI

````yaml https://api.ionworks.com/openapi.json patch /cell_instances/{cell_instance_id}
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://api.ionworks.com
    description: Production
security: []
paths:
  /cell_instances/{cell_instance_id}:
    patch:
      tags:
        - Cell Instances
      summary: Update a specific cell instance by id
      description: |-
        Updates an existing cell instance identified by its ID.
        Only provided fields will be updated.
      operationId: update_cell_instance_cell_instances__cell_instance_id__patch
      parameters:
        - name: cell_instance_id
          in: path
          required: true
          schema:
            type: string
            title: Cell Instance Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
              title: Raw Data
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CellInstance'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    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.
        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.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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

````