> ## 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 one library rule (BO)



## OpenAPI

````yaml /api/bo/openapi.json get /bo/library-rules/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:
  /bo/library-rules/v1/{id}:
    get:
      tags:
        - library-rules
      summary: Get one library rule (BO)
      operationId: getLibraryRuleBOV1
      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
      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)$
                  version:
                    type: integer
                    minimum: 0
                    exclusiveMinimum: true
                    maximum: 9007199254740991
                  name:
                    type: string
                    minLength: 1
                    maxLength: 200
                  description:
                    nullable: true
                    type: string
                    maxLength: 2000
                  type:
                    type: string
                    enum:
                      - preventive
                      - training_session
                      - training_exercise
                      - training_qualification
                  workflowType:
                    type: string
                    enum:
                      - calendar
                      - regulatory
                  complianceType:
                    type: string
                    enum:
                      - registry
                      - maintenance
                  rrule:
                    nullable: true
                    type: string
                    minLength: 1
                    maxLength: 500
                  rruleGap:
                    nullable: true
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  validityDuration:
                    nullable: true
                    type: string
                    pattern: >-
                      ^P(?!$)(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?$
                  thresholdPercent:
                    nullable: true
                    type: integer
                    minimum: 0
                    maximum: 100
                  links:
                    nullable: true
                    type: object
                    additionalProperties: {}
                  providerTypes:
                    type: array
                    items:
                      type: string
                      enum:
                        - qualified_technician
                        - approved_organization
                        - training_provider
                  siteScopes:
                    type: array
                    items:
                      type: object
                      properties:
                        classifications:
                          type: array
                          items:
                            type: string
                            enum:
                              - erp
                              - ert
                              - igh
                              - icpe
                              - hab
                              - other
                        categories:
                          type: array
                          items:
                            type: string
                            enum:
                              - '1'
                              - '2'
                              - '3'
                              - '4'
                              - '5'
                        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
                        privateCapacity:
                          type: object
                          properties:
                            operator:
                              type: string
                              enum:
                                - '>'
                                - '>='
                                - <
                                - <=
                                - '='
                            value:
                              type: integer
                              minimum: 0
                              maximum: 9007199254740991
                          required:
                            - operator
                            - value
                          additionalProperties: false
                      additionalProperties: false
                  mainLibraryTechnicalInstallationId:
                    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)$
                  createdByBoUserId:
                    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)$
                  archivedAt:
                    nullable: true
                    type: string
                    format: date-time
                  createdAt:
                    type: string
                    format: date-time
                  updatedAt:
                    type: string
                    format: date-time
                  libraryTechnicalInstallations:
                    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)$
                        nameFr:
                          type: string
                          minLength: 1
                          maxLength: 150
                        nameEn:
                          type: string
                          minLength: 1
                          maxLength: 150
                        nameDe:
                          type: string
                          minLength: 1
                          maxLength: 150
                      required:
                        - id
                        - nameFr
                        - nameEn
                        - nameDe
                      additionalProperties: false
                  createdByBoUser:
                    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
                      email:
                        type: string
                    required:
                      - id
                      - name
                      - email
                    additionalProperties: false
                  _count:
                    type: object
                    properties:
                      instances:
                        type: integer
                        minimum: 0
                        maximum: 9007199254740991
                    required:
                      - instances
                    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
                required:
                  - id
                  - version
                  - name
                  - description
                  - type
                  - workflowType
                  - complianceType
                  - rrule
                  - rruleGap
                  - validityDuration
                  - thresholdPercent
                  - links
                  - providerTypes
                  - siteScopes
                  - mainLibraryTechnicalInstallationId
                  - createdByBoUserId
                  - archivedAt
                  - 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

````