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

# Update a dashboard's embed access

Add, update, or remove one embed audience from a workbook's published dashboard, and/or toggle signed embedding. Returns the updated embed-access view.

Provide exactly one target — `embedTenantName` (a single embed tenant) or `allEmbedUsers: true` (every embed tenant) — together with `action`: `"read"` grants access, `"none"` removes it. Include `allowEmbed` to also flip "Allow signed embedding" in the same request; omit both targets to change only `allowEmbed`.

Requires **manage** access to the workbook. Returns `404` if the workbook or the named embed tenant does not exist, and `400` if the request specifies no change or sets `allowEmbed` on a workbook that has no published dashboard.


## OpenAPI

````yaml /api-reference/api.yaml put /api/v1/deployments/{deploymentId}/workbooks/{workbookId}/embed-access
openapi: 3.1.0
info:
  title: Cube Platform API
  version: 1.0.0
  description: >-
    Programmatically manage Cube: deployments and everything scoped to them

    (environments, folders, reports, workbooks, notifications, workspace, and
    agents),

    plus account-level users, groups, policies, embedding, and AI settings.
    Data-model

    authoring, dev mode, branches, and uploads live under /build/api/v1 — same
    host and

    token, routed to the build pods.
servers:
  - url: https://{tenant}.cubecloud.dev
    description: Your tenant host. Replace the whole host if you use a custom domain.
    variables:
      tenant:
        default: your-tenant
        description: Your Cube tenant subdomain
security:
  - bearerAuth: []
tags:
  - name: Deployments
  - name: Deployment Creation
  - name: Environments
  - name: Env Variables
  - name: Regions
  - name: Data Model
  - name: Data Model Uploads
  - name: GitHub
  - name: GitHub Connection
  - name: dbt Sync
  - name: Folders
  - name: Reports
  - name: Workbooks
  - name: Notifications
  - name: Workspace
  - name: Users Admin
  - name: User Attributes
  - name: User Attribute Values
  - name: Tenant Settings
  - name: OAuth Integrations
  - name: User OAuth Tokens
  - name: OIDC Token Configs
  - name: App Theme
  - name: Embed
  - name: Embed Tenants
  - name: Dashboard Embed Access
paths:
  /api/v1/deployments/{deploymentId}/workbooks/{workbookId}/embed-access:
    put:
      tags:
        - Dashboard Embed Access
      summary: Update a dashboard's embed access
      operationId: updateEmbedAccess
      parameters:
        - in: path
          name: deploymentId
          required: true
          schema:
            type: number
        - in: path
          name: workbookId
          required: true
          schema:
            type: number
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateEmbedAccessInput'
        description: UpdateEmbedAccessInput
        required: false
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmbedAccessResponse'
          description: ''
components:
  schemas:
    UpdateEmbedAccessInput:
      properties:
        action:
          oneOf:
            - $ref: '#/components/schemas/UpdateEmbedAccessInputAction'
            - type: 'null'
        allEmbedUsers:
          oneOf:
            - type: boolean
            - type: 'null'
        allowEmbed:
          oneOf:
            - type: boolean
            - type: 'null'
        embedTenantName:
          oneOf:
            - type: string
            - type: 'null'
      type: object
    EmbedAccessResponse:
      properties:
        allEmbedUsers:
          $ref: '#/components/schemas/EmbedAccessAllEmbedUsers'
        allowEmbed:
          type: boolean
        tenants:
          items:
            $ref: '#/components/schemas/EmbedAccessTenantEntry'
          type: array
      required:
        - allowEmbed
        - allEmbedUsers
        - tenants
      type: object
    UpdateEmbedAccessInputAction:
      enum:
        - read
        - none
      type: string
    EmbedAccessAllEmbedUsers:
      properties:
        action:
          $ref: '#/components/schemas/EmbedAccessAllEmbedUsersAction'
        enabled:
          type: boolean
        groupId:
          oneOf:
            - type: integer
            - type: 'null'
      required:
        - enabled
        - action
      type: object
    EmbedAccessTenantEntry:
      properties:
        action:
          $ref: '#/components/schemas/EmbedAccessTenantEntryAction'
        embedTenantName:
          type: string
        groupId:
          type: integer
      required:
        - embedTenantName
        - groupId
        - action
      type: object
    EmbedAccessAllEmbedUsersAction:
      enum:
        - read
        - none
      type: string
    EmbedAccessTenantEntryAction:
      enum:
        - read
        - none
      type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Token authentication. Send `Authorization: Bearer <YOUR_TOKEN>`.'

````