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

# Update analytics board



## OpenAPI

````yaml /openapi.yaml patch /analytics_boards/{id}
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:
  /analytics_boards/{id}:
    patch:
      tags:
        - AnalyticsBoard
      summary: Update analytics board
      operationId: analytics_boards#update
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: integer
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/requestBodyAnalyticsBoardUpdate'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/analytics_board'
        '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:
    requestBodyAnalyticsBoardUpdate:
      type: object
      properties:
        name:
          type: string
        placement:
          type: string
          enum:
            - workspace
            - project
            - product
    analytics_board:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
        placement:
          type: string
          enum:
            - workspace
            - project
            - product
        position:
          type: integer
        workspace_id:
          type: integer
        created_by_id:
          type: integer
          nullable: true
        created_at:
          type: string
          format: date-time
        analytics_board_widgets:
          type: array
          items:
            $ref: '#/components/schemas/analytics_board_widget'
    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
    analytics_board_widget:
      type: object
      properties:
        id:
          type: integer
        analytics_board_id:
          type: integer
        widget_type:
          type: string
          enum:
            - kpi
            - bar_chart
            - pie_chart
            - line_chart
        title:
          type: string
        config:
          type: object
        restricted:
          type: boolean
          description: >-
            The widget reads a column hidden from the current role; its data
            endpoint returns { restricted: true }.
        unavailable:
          type: boolean
          description: >-
            The widget references a column that was deleted; its data endpoint
            returns { unavailable: true }.
        position:
          type: integer
        created_at:
          type: string
          format: date-time
  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.