> ## Documentation Index
> Fetch the complete documentation index at: https://api-documentation.kare-app.fr/llms.txt
> Use this file to discover all available pages before exploring further.

# Update a child unit (BO)



## OpenAPI

````yaml /api/bo/openapi.json patch /bo/units/v1/children/{id}
openapi: 3.0.3
info:
  title: KARE API
  description: Backend API for the KARE platform
  version: dev
servers:
  - url: http://localhost:3000
    description: Local dev
security: []
tags:
  - name: better-auth
    description: >-
      Better Auth's own endpoints (sign-in, session, MFA, password) - generated
      from the audience's live config via `generateOpenAPISchema()`, not
      hand-written.
paths:
  /bo/units/v1/children/{id}:
    patch:
      tags:
        - units
      summary: Update a child unit (BO)
      operationId: updateChildUnitBOV1
      parameters:
        - schema:
            type: string
            format: uuid
            pattern: >-
              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
          in: path
          name: id
          required: true
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 150
                description:
                  nullable: true
                  type: string
                  maxLength: 1000
                serialNumber:
                  nullable: true
                  type: string
                  minLength: 1
                  maxLength: 20
                openedAt:
                  nullable: true
                accessInstructions:
                  nullable: true
                  type: string
                  maxLength: 1000
                activityTypes:
                  type: array
                  items:
                    type: string
                    enum:
                      - J
                      - L
                      - M
                      - 'N'
                      - O
                      - P
                      - R
                      - S
                      - T
                      - U
                      - V
                      - W
                      - X
                      - 'Y'
                      - PA
                      - CTS
                      - SG
                      - OA
                      - REF
                      - PS
                      - GHA
                      - GHO
                      - GHR
                      - GHS
                      - GHTC
                      - GHU
                      - GHW1
                      - GHW2
                      - GHZ
                      - ITGH
                classifications:
                  type: array
                  items:
                    type: string
                    enum:
                      - erp
                      - ert
                      - igh
                      - icpe
                      - hab
                      - other
                totalSurfaceArea:
                  nullable: true
                  type: integer
                  minimum: 0
                  exclusiveMinimum: true
                  maximum: 9007199254740991
                publicCapacity:
                  nullable: true
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                privateCapacity:
                  nullable: true
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                pinCodeRequired:
                  type: boolean
                pinCode:
                  type: string
                  pattern: ^\d{6}$
                leafletDispatchedAt:
                  nullable: true
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                    pattern: >-
                      ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                required:
                  - id
                additionalProperties: false
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                  requestId:
                    type: string
                  details: {}
                required:
                  - error
                  - message
                  - requestId
                additionalProperties: false
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                  requestId:
                    type: string
                  details: {}
                required:
                  - error
                  - message
                  - requestId
                additionalProperties: false
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                  requestId:
                    type: string
                  details: {}
                required:
                  - error
                  - message
                  - requestId
                additionalProperties: false

````