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

# Get an equipment



## OpenAPI

````yaml /api/rs/openapi.json get /rs/equipments/v1/{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:
  /rs/equipments/v1/{id}:
    get:
      tags:
        - equipments
      summary: Get an equipment
      operationId: getEquipmentRSV1
      parameters:
        - schema:
            type: array
            items:
              type: string
              enum:
                - technical-installation
                - unit
                - installed-by
                - position
                - contained-in
                - specifications
                - qrcode
                - qrcodes
                - counts
                - actions-info
                - updatable-fields
                - responsibles
                - created-by
              description: >-
                Extend options (JSON-encoded array, e.g.
                `?extend=["category"]`):

                - "technical-installation": Adds `technicalInstallation` (the
                equipment's technical installation).

                - "unit": Adds `unit` (the unit the equipment is attached to,
                nullable).

                - "installed-by": Adds `installedBy` (the installer provider,
                nullable).

                - "position": Adds `position` (the marker on a plan, nullable).

                - "contained-in": Adds `containedIn` (the zones/rooms this
                equipment sits in).

                - "specifications": Adds `specifications` (the specification
                values tagging this equipment).

                - "qrcode": Adds `qrcode` (the QR code associated to this
                equipment, nullable).

                - "qrcodes": Adds `qrcodes` (every QR code associated to this
                equipment, by serial number).

                - "counts": Adds `counts` (anomalies by processing state,
                tickets, compliances by status, QR codes, responsibilities and
                interventions attached).

                - "actions-info": Projects `{ canBeUpdated, canBeArchived,
                canBeUnarchived, canBeDeleted }`.

                - "updatable-fields": Per-field write rules for this equipment
                in its current state.

                - "responsibles": Adds `responsibles` - the users responsible
                for this element.

                - "created-by": Adds `createdBy` (the user who created this
                equipment).
          in: query
          name: extend
          required: false
        - schema:
            maxItems: 250
            type: array
            items:
              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)$
            example:
              - 550e8400-e29b-41d4-a716-446655440000
              - 6ba7b810-9dad-11d1-80b4-00c04fd430c8
          in: query
          name: whereUnitIds
          required: false
          description: Narrow linked equipments to the requested unit ids.
        - schema:
            maxItems: 250
            type: array
            items:
              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)$
            example:
              - 550e8400-e29b-41d4-a716-446655440000
              - 6ba7b810-9dad-11d1-80b4-00c04fd430c8
          in: query
          name: whereITIds
          required: false
          description: Narrow the result to the requested technical installations.
        - 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
      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)$
                  ref:
                    type: string
                    maxLength: 40
                    pattern: ^[A-Z]+-[1-9]\d*(?:-[A-Z]+-[1-9]\d*)*$
                  name:
                    type: string
                    minLength: 1
                    maxLength: 150
                  description:
                    nullable: true
                    type: string
                    maxLength: 1000
                  manufacturer:
                    nullable: true
                    type: string
                    minLength: 1
                    maxLength: 100
                  externalReference:
                    nullable: true
                    type: string
                    minLength: 1
                    maxLength: 100
                  condition:
                    nullable: true
                    type: string
                    enum:
                      - new
                      - very_good
                      - good
                      - average
                      - bad
                  availability:
                    nullable: true
                    type: string
                    enum:
                      - in_service
                      - in_stock
                      - in_repair
                      - out_of_service
                  purchasePrice:
                    nullable: true
                    type: number
                    minimum: 0
                    exclusiveMinimum: true
                    maximum: 999999999.99
                  replacementValue:
                    nullable: true
                    type: number
                    minimum: 0
                    exclusiveMinimum: true
                    maximum: 999999999.99
                  technicalInstallationId:
                    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)$
                  unitId:
                    nullable: true
                    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)$
                  installedById:
                    nullable: true
                    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)$
                  installedAt:
                    nullable: true
                    type: string
                    format: date-time
                  constructedAt:
                    nullable: true
                    type: string
                    format: date-time
                  archivedAt:
                    nullable: true
                    type: string
                    format: date-time
                  deletedAt:
                    nullable: true
                    type: string
                    format: date-time
                  createdAt:
                    type: string
                    format: date-time
                  updatedAt:
                    type: string
                    format: date-time
                  technicalInstallation:
                    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)$
                      ref:
                        type: string
                        maxLength: 40
                        pattern: ^[A-Z]+-[1-9]\d*(?:-[A-Z]+-[1-9]\d*)*$
                      name:
                        type: string
                        minLength: 1
                        maxLength: 150
                    required:
                      - id
                      - ref
                      - name
                    additionalProperties: false
                  unit:
                    nullable: true
                    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)$
                      ref:
                        type: string
                        maxLength: 40
                        pattern: ^[A-Z]+-[1-9]\d*(?:-[A-Z]+-[1-9]\d*)*$
                      name:
                        type: string
                        minLength: 1
                        maxLength: 150
                    required:
                      - id
                      - ref
                      - name
                    additionalProperties: false
                  installedBy:
                    nullable: true
                    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)$
                      name:
                        type: string
                        minLength: 1
                        maxLength: 150
                    required:
                      - id
                      - name
                    additionalProperties: false
                  position:
                    nullable: true
                    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)$
                      planId:
                        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)$
                      xPercent:
                        type: number
                        minimum: 0
                        maximum: 100
                      yPercent:
                        type: number
                        minimum: 0
                        maximum: 100
                    required:
                      - id
                      - planId
                      - xPercent
                      - yPercent
                    additionalProperties: false
                  containedIn:
                    type: array
                    items:
                      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)$
                        name:
                          type: string
                          minLength: 1
                          maxLength: 150
                      required:
                        - id
                        - name
                      additionalProperties: false
                  specifications:
                    type: array
                    items:
                      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)$
                        name:
                          type: string
                          minLength: 1
                          maxLength: 100
                        specificationId:
                          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)$
                        specificationName:
                          type: string
                          minLength: 1
                          maxLength: 100
                        specificationColor:
                          type: string
                          pattern: ^#[0-9a-fA-F]{6}$
                      required:
                        - id
                        - name
                        - specificationId
                        - specificationName
                        - specificationColor
                      additionalProperties: false
                  qrcode:
                    nullable: true
                    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)$
                      slug:
                        type: string
                        pattern: ^[A-Za-z0-9_-]{6,64}$
                      activatedAt:
                        nullable: true
                        type: string
                        format: date-time
                    required:
                      - id
                      - slug
                      - activatedAt
                    additionalProperties: false
                  qrcodes:
                    type: array
                    items:
                      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)$
                        slug:
                          type: string
                          pattern: ^[A-Za-z0-9_-]{6,64}$
                        number:
                          type: integer
                          minimum: 0
                          exclusiveMinimum: true
                          maximum: 2147483647
                        activatedAt:
                          nullable: true
                          type: string
                          format: date-time
                        firstAssociationAt:
                          nullable: true
                          type: string
                          format: date-time
                      required:
                        - id
                        - slug
                        - number
                        - activatedAt
                        - firstAssociationAt
                      additionalProperties: false
                  counts:
                    type: object
                    properties:
                      anomalies:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      anomaliesToProcess:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      anomaliesInProgress:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      tickets:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      compliances:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      compliancesOverdue:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      compliancesAtRisk:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      compliancesOnTime:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      compliancesNotStarted:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      qrcodes:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      responsibilities:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      interventions:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                    required:
                      - anomalies
                      - anomaliesToProcess
                      - anomaliesInProgress
                      - tickets
                      - compliances
                      - compliancesOverdue
                      - compliancesAtRisk
                      - compliancesOnTime
                      - compliancesNotStarted
                      - qrcodes
                      - responsibilities
                      - interventions
                    additionalProperties: false
                  actions:
                    type: object
                    properties:
                      canBeUpdated:
                        type: boolean
                      canBeArchived:
                        type: boolean
                      canBeUnarchived:
                        type: boolean
                      canBeDeleted:
                        type: boolean
                    required:
                      - canBeUpdated
                      - canBeArchived
                      - canBeUnarchived
                      - canBeDeleted
                    additionalProperties: false
                  updatableFields:
                    type: object
                    properties:
                      name:
                        type: boolean
                      description:
                        type: boolean
                      manufacturer:
                        type: boolean
                      externalReference:
                        type: boolean
                      condition:
                        type: boolean
                      availability:
                        type: boolean
                      purchasePrice:
                        type: boolean
                      replacementValue:
                        type: boolean
                      technicalInstallationId:
                        type: boolean
                      unitId:
                        type: boolean
                      installedById:
                        type: boolean
                      installedAt:
                        type: boolean
                      constructedAt:
                        type: boolean
                      containedIn:
                        type: boolean
                      specificationIds:
                        type: boolean
                    required:
                      - name
                      - description
                      - manufacturer
                      - externalReference
                      - condition
                      - availability
                      - purchasePrice
                      - replacementValue
                      - technicalInstallationId
                      - unitId
                      - installedById
                      - installedAt
                      - constructedAt
                      - containedIn
                      - specificationIds
                    additionalProperties: false
                  responsibles:
                    type: array
                    items:
                      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)$
                        name:
                          type: string
                        email:
                          nullable: true
                          type: string
                      required:
                        - id
                        - name
                        - email
                      additionalProperties: false
                  createdBy:
                    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)$
                      ref:
                        type: string
                        maxLength: 40
                        pattern: ^[A-Z]+-[1-9]\d*(?:-[A-Z]+-[1-9]\d*)*$
                      name:
                        type: string
                    required:
                      - id
                      - ref
                      - name
                    additionalProperties: false
                required:
                  - id
                  - ref
                  - name
                  - description
                  - manufacturer
                  - externalReference
                  - condition
                  - availability
                  - purchasePrice
                  - replacementValue
                  - technicalInstallationId
                  - unitId
                  - installedById
                  - installedAt
                  - constructedAt
                  - archivedAt
                  - deletedAt
                  - createdAt
                  - updatedAt
                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

````