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

# List workspace patches

> Returns a paginated list of patches for the selected workspace. Only applies to workspaces with platform_type `windows`.



## OpenAPI

````yaml /en/api-reference/openapi.en-v1.json get /v1/organizations/{organization_id}/workspaces/{workspace_id}/patches
openapi: 3.0.3
info:
  title: API Publica Portal
  version: 1.0.0
  description: Public REST API for portal
servers:
  - url: https://api.flexxible.net/
    description: Portal API
security:
  - bearerAuth: []
tags: []
paths:
  /v1/organizations/{organization_id}/workspaces/{workspace_id}/patches:
    get:
      tags:
        - Workspaces
      summary: List workspace patches
      description: >-
        Returns a paginated list of patches for the selected workspace. Only
        applies to workspaces with platform_type `windows`.
      operationId: workspaces_patches
      parameters:
        - name: organization_id
          in: path
          required: true
          schema:
            type: string
            pattern: ^[0-9a-f]{24}$
            minLength: 24
            maxLength: 24
          description: Organization identifier.
          example: 507f1f77bcf86cd799439011
        - name: workspace_id
          in: path
          required: true
          schema:
            type: string
            pattern: ^[0-9a-f]{24}$
            minLength: 24
            maxLength: 24
          description: 'Workspace ID '
          example: 507f1f77bcf86cd799439099
        - name: page
          in: query
          required: false
          schema:
            type: integer
            default: 1
            minimum: 1
          description: Page number.
        - name: per_page
          in: query
          required: false
          schema:
            type: integer
            default: 100
            maximum: 100
            minimum: 1
          description: Number of items per page.
        - name: fields
          in: query
          required: false
          schema:
            type: string
            maxLength: 2048
          description: Response fields to be included, separated by commas.
        - name: filters
          in: query
          required: false
          schema:
            type: string
            maxLength: 5120
          description: JSON filter expression on response item fields (includes `id`).
          examples:
            simple:
              summary: Filter by title
              value: '{"field":"title","op":"contains","value":"security update"}'
            complex-and:
              summary: Filter by status and severity
              value: >-
                {"and":[{"field":"status","op":"eq","value":"pending"},{"field":"severity","op":"contains","value":"critical"}]}
            complex-or-and:
              summary: Combine OR and AND
              value: >-
                {"and":[{"or":[{"field":"product","op":"contains","value":"windows
                10"},{"field":"product","op":"contains","value":"windows
                11"}]},{"field":"kb","op":"contains","value":"kb503"}]}
        - name: sort
          in: query
          required: false
          schema:
            type: string
            pattern: ^([a-z_]+):(asc|desc)$
          description: >-
            Sorting expression in the format <field>:asc|desc over scalar fields
            of the item (includes `id`). In aggregation mode, it only accepts
            fields from `group_by` or aggregate aliases (`count`,
            `<function>_<field>`).
        - name: aggregate
          in: query
          required: false
          schema:
            type: string
            maxLength: 4096
          description: >-
            JSON aggregation expression with `group_by` and `aggregates` over
            first-level scalar fields.
          examples:
            group_status_count:
              summary: Group by status and count
              value: >-
                {"group_by":["status"],"aggregates":[{"field":"*","function":"count"}]}
            group_product_avg:
              summary: Group by product and calculate average
              value: >-
                {"group_by":["product"],"aggregates":[{"field":"*","function":"count"},{"field":"installed_at","function":"max"}]}
      responses:
        '200':
          description: Workspace patches retrieved successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetWorkspacePatchesResponseV1'
              examples:
                paginated_result:
                  summary: Paginated result with patch records
                  value:
                    has_next: true
                    data:
                      - id: 64f0c2a1b2d3e4f506070812
                        kb: KB5034123
                        title: Actualizacion acumulativa de seguridad
                        status: pending
                        product: windows 11
                        severity: critical
                        arrived_at: '2026-03-15'
                        category: security_updates
                        installed_at: null
                        additional_information_url: https://support.microsoft.com/help/kb5034123
                empty_result:
                  summary: No patches found
                  value:
                    has_next: false
                    data: []
        '400':
          description: Invalid request parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                invalid_filters:
                  summary: Invalid filter format
                  value:
                    error:
                      message: Formato de filtros no valido
                      code: bad_request
                      details: filters debe ser una cadena JSON valida
                invalid_platform_type:
                  summary: Workspace with incompatible platform
                  value:
                    error:
                      message: Workspace no compatible para consulta de parches
                      code: bad_request
                      details: >-
                        Este endpoint solo admite workspaces con platform_type
                        windows
        '401':
          description: Unauthorized or organization not accessible.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                organization_not_authorized:
                  summary: Organization access failure
                  value:
                    error:
                      message: No autorizado
                      code: unauthorized
        '404':
          description: Workspace not found within the authorized organization's scope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                workspace_not_found:
                  summary: Workspace does not exist within scope
                  value:
                    error:
                      message: Workspace no encontrado
                      code: not_found
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                unexpected_error:
                  summary: Unhandled failure
                  value:
                    error:
                      message: Error interno del servidor
                      code: internal_error
components:
  schemas:
    GetWorkspacePatchesResponseV1:
      type: object
      properties:
        has_next:
          type: boolean
          description: Indicates if another page is available.
        data:
          type: array
          items:
            $ref: '#/components/schemas/GetWorkspacePatchItemV1'
      required:
        - has_next
        - data
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
            code:
              type: string
            details:
              type: string
          required:
            - message
            - code
      required:
        - error
    GetWorkspacePatchItemV1:
      type: object
      properties:
        id:
          type: string
          pattern: ^[0-9a-f]{24}$
          minLength: 24
          maxLength: 24
          description: Patch record identifier.
        kb:
          type: string
          description: Patch KB code.
        title:
          type: string
          description: Patch title.
        status:
          type: string
          enum:
            - pending
            - installed
          description: Patch status.
        product:
          type: string
          description: Product associated with the patch.
        severity:
          type: string
          description: Patch severity.
        arrived_at:
          type: string
          description: Patch arrival or publishing date.
        category:
          type: string
          description: Patch category.
        installed_at:
          type: string
          nullable: true
          description: Patch installation date.
        additional_information_url:
          type: string
          description: URL with additional patch information.
      required:
        - id
        - kb
        - title
        - status
        - product
        - severity
        - arrived_at
        - category
        - additional_information_url
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````