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

# Publish custom dashboard

> Publish a custom dashboard in Knowi with a specified access level. Requires admin or dashboards/w scope.



## OpenAPI

````yaml /api-reference/cx/swagger.json post /dashboard/custom/{dashboard_id}/_publish
openapi: 3.0.0
info:
  description: CX API.
  title: CX API
  contact:
    name: API Support
    url: https://stax.ai
    email: support@stax.ai
  version: '1.0'
servers:
  - url: https://api.cx.stax.ai
security: []
paths:
  /dashboard/custom/{dashboard_id}/_publish:
    post:
      tags:
        - dashboard
      summary: Publish custom dashboard
      description: >-
        Publish a custom dashboard in Knowi with a specified access level.
        Requires admin or dashboards/w scope.
      parameters:
        - description: Dashboard ID
          name: dashboard_id
          in: path
          required: true
          schema:
            type: integer
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/pkg_routes_dashboard_custom.PublishCustomDashboardRequest
        description: Publish request with accessLevel
        required: true
      responses:
        '200':
          description: Publish status
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/pkg_routes_dashboard_custom.PublishCustomDashboardResponse
        '400':
          description: Bad request - invalid dashboard ID or accessLevel
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
      security:
        - ApiKeyAuth: []
components:
  schemas:
    pkg_routes_dashboard_custom.PublishCustomDashboardRequest:
      type: object
      required:
        - accessLevel
      properties:
        accessLevel:
          type: integer
    pkg_routes_dashboard_custom.PublishCustomDashboardResponse:
      type: object
      properties:
        ok:
          type: boolean
  securitySchemes:
    ApiKeyAuth:
      description: CX API key. Create one in CX under Settings → Advanced → API Keys.
      in: header
      name: x-api-key
      type: apiKey

````

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