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

# Update subject

> Update an existing subject. Only the fields provided in the request body
are updated -- omitted fields remain unchanged.




## OpenAPI

````yaml /openapi.yaml put /subjects/{subject_id}
openapi: 3.0.1
info:
  title: Ochy Partner API
  version: 1.0.0
  description: >
    The Ochy Partner API lets you integrate running biomechanical analysis into
    your application.

    Upload a video of a runner, receive detailed biomechanical metrics, joint
    angles, running style

    classification, and frame-by-frame position data.
servers:
  - url: https://partner-api.ochy-prod.com
    description: Production
security:
  - apiKey: []
paths:
  /subjects/{subject_id}:
    put:
      tags:
        - Subjects
      summary: Update subject
      description: |
        Update an existing subject. Only the fields provided in the request body
        are updated -- omitted fields remain unchanged.
      operationId: updateSubject
      parameters:
        - name: subject_id
          in: path
          required: true
          description: Subject ID.
          schema:
            type: string
          example: 550e8400-e29b-41d4-a716-446655440000
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubjectUpdateRequest'
            example:
              name: Jane Smith-Williams
              weight: 63
      responses:
        '200':
          description: Subject updated.
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
              example:
                message: Subject updated
        '400':
          description: Invalid request body.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthErrorResponse'
        '403':
          description: Invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthErrorResponse'
        '404':
          description: Subject not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                detail: Subject not found
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    SubjectUpdateRequest:
      type: object
      description: >-
        Only provided fields are updated. Omitted fields remain unchanged.
        Height is in meters, weight is in kilograms.
      properties:
        email:
          type: string
          example: newemail@example.com
        name:
          type: string
          example: Jane Smith-Williams
        height:
          type: number
          description: Subject height in meters.
          example: 1.73
        weight:
          type: number
          description: Subject weight in kilograms.
          example: 63
    ErrorResponse:
      type: object
      properties:
        detail:
          type: string
          example: Internal server error
        code:
          type: string
          description: Machine-readable error code (present on some errors).
          example: insufficient_credits
    AuthErrorResponse:
      type: object
      properties:
        detail:
          type: string
          example: API Key is missing
  securitySchemes:
    apiKey:
      type: apiKey
      in: query
      name: apiKey
      description: Your API key, passed as a query parameter on every request.

````