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

# Generate project items matrix report



## OpenAPI

````yaml /openapi.yaml post /reports/project_items/matrix
openapi: 3.0.1
info:
  title: GetSpecs REST API
  description: REST API documentation for GetSpecs.
  version: 1.0.0
servers:
  - url: /v1
  - url: https://demo-api.getspecs.io/v1
security: []
paths:
  /reports/project_items/matrix:
    post:
      tags:
        - Report
      summary: Generate project items matrix report
      operationId: reports/project_items/matrix#create
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/requestBodyReportProjectItemsMatrixCreate'
        required: true
      responses:
        '202':
          description: Accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/report'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
      security:
        - apiKey: []
          workspaceId: []
components:
  schemas:
    requestBodyReportProjectItemsMatrixCreate:
      type: object
      properties:
        project_id:
          type: integer
        columns_list:
          type: array
          description: >-
            Up to 5 ItemField slugs (product-logic or project-logic) rendered as
            extra columns before the area columns. More than 5 → 422
            columns_list_too_many.
          items:
            type: string
        area_ids:
          type: array
          nullable: true
          items:
            type: integer
          description: >-
            Narrows which of the project's active areas are rendered as matrix
            columns (expanded to include descendant areas). Each id must
            reference an active area belonging to the project. Does not affect
            the Total column, which always reflects the item's global quantity.
        filter:
          $ref: '#/components/schemas/filter'
      required:
        - project_id
    report:
      type: object
      properties:
        id:
          type: integer
        status:
          type: string
          enum:
            - processing
            - completed
            - failed
        report_kind:
          type: string
          enum:
            - projects_list
            - project_items_list
            - product_items_list
            - cross_project_items_list
            - project_items_matrix
            - package_baseline_items_list
            - cross_project_baseline_items_list
            - purchase_orders_list
            - goods_receipts_list
            - supplier_invoices_list
            - purchase_order_record
            - supplier_invoice_record
            - goods_receipt_record
        report_extension:
          type: string
          enum:
            - xlsx
            - pdf
        job_id:
          type: string
          format: uuid
        project_id:
          type: integer
          nullable: true
        project:
          type: object
          nullable: true
          properties:
            id:
              type: integer
            name:
              type: string
          required:
            - id
            - name
        file_url:
          type: string
          nullable: true
        error_message:
          type: string
          nullable: true
          description: Free-text failure reason (only set for failed reports)
        created_at:
          type: string
          format: date-time
      required:
        - id
        - status
        - report_kind
        - report_extension
        - job_id
        - project
        - error_message
        - created_at
    error:
      type: object
      properties:
        error:
          type: string
        errors:
          type: array
          items:
            type: object
            properties:
              field:
                type: string
                nullable: true
              code:
                type: string
                nullable: true
              message:
                type: string
            required:
              - message
    filter:
      type: object
      properties:
        ids:
          type: array
          items:
            type: integer
        columns:
          type: array
          items:
            type: object
            required:
              - column_slug
              - operator
            properties:
              column_slug:
                type: string
              operator:
                type: string
              value: {}
              value2: {}
              values:
                type: array
                items:
                  type: string
  securitySchemes:
    apiKey:
      type: apiKey
      name: authorization
      in: header
    workspaceId:
      type: apiKey
      name: X-Workspace-ID
      in: header

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.