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

# Update conversation sharing

> Gives members of the workspace, by email, groups, by name, or API keys, by ID, write access to a conversation, or removes it with `none`. Requires write access to the conversation. The access of the conversation's owner can't be changed.




## OpenAPI

````yaml https://dust.tt/api/doc patch /api/v1/w/{wId}/assistant/conversations/{cId}/sharing
openapi: 3.0.0
info:
  title: DUST API Documentation
  version: 1.0.2
  description: The OpenAPI specification for the Dust.tt API
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
servers:
  - url: https://dust.tt
    description: Dust.tt API (us-central1)
  - url: https://eu.dust.tt
    description: Dust.tt API (europe-west1)
security: []
tags:
  - name: Users
    description: User management
  - name: Agents
    description: Agent configurations
  - name: Analytics
    description: Workspace analytics
  - name: Apps
    description: Dust apps
  - name: Conversations
    description: Conversations
  - name: Datasources
    description: Data sources
  - name: DatasourceViews
    description: Data source views
  - name: Feedbacks
    description: Message feedbacks
  - name: MCP
    description: MCP servers
  - name: Mentions
    description: Mentions
  - name: Search
    description: Search
  - name: Skills
    description: Skills
  - name: Spaces
    description: Spaces
  - name: Tools
    description: Tools
  - name: Triggers
    description: Triggers
  - name: Workspace
    description: Workspace
  - name: Private Agents
    description: Private API - Agent configurations
  - name: Private Authentication
    description: Private API - Authentication (WorkOS)
  - name: Private Conversations
    description: Private API - Conversations
  - name: Private Events
    description: Private API - SSE event streams
  - name: Private Extension
    description: Private API - Extension configuration
  - name: Private Files
    description: Private API - File uploads
  - name: Private Mentions
    description: Private API - Mention suggestions
  - name: Private Messages
    description: Private API - Messages
  - name: Private Spaces
    description: Private API - Spaces and data source views
  - name: Private User
    description: Private API - User
  - name: Private Workspace
    description: Private API - Workspace settings
paths:
  /api/v1/w/{wId}/assistant/conversations/{cId}/sharing:
    patch:
      tags:
        - Conversations
      summary: Update conversation sharing
      description: >
        Gives members of the workspace, by email, groups, by name, or API keys,
        by ID, write access to a conversation, or removes it with `none`.
        Requires write access to the conversation. The access of the
        conversation's owner can't be changed.
      parameters:
        - in: path
          name: wId
          required: true
          description: ID of the workspace
          schema:
            type: string
        - in: path
          name: cId
          required: true
          description: ID of the conversation
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - changes
              properties:
                changes:
                  type: array
                  minItems: 1
                  maxItems: 100
                  description: >-
                    A user, group or API key listed more than once gets its last
                    change.
                  items:
                    $ref: '#/components/schemas/ConversationSharingChange'
      responses:
        '200':
          description: Sharing updated successfully.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
        '400':
          description: >
            Bad Request. Invalid parameters, a user who isn't a member of the
            workspace, the conversation's owner (a user or an API key), a
            conversation in a project, or a sub-agent conversation.
        '401':
          description: Unauthorized. Invalid or missing authentication token.
        '403':
          description: >
            Forbidden. The conversation isn't shared with the caller, or the
            caller can't write to it.
        '404':
          description: >
            Conversation not found, no user with one of the emails, no group
            with one of the names, or no active, non-system API key with one of
            the IDs.
        '409':
          description: The conversation can't be shared yet.
        '500':
          description: Internal Server Error.
      security:
        - BearerAuth: []
components:
  schemas:
    ConversationSharingChange:
      oneOf:
        - type: object
          required:
            - email
            - permission
          properties:
            email:
              type: string
              format: email
              description: Email of a member of the workspace
              example: jane@example.com
            permission:
              type: string
              enum:
                - write
                - none
              description: Write access, or `none` to remove it
              example: write
        - type: object
          required:
            - groupName
            - permission
          properties:
            groupName:
              type: string
              description: >
                Exact name of a group of the workspace, such as "Workspace" for
                all its members
              example: Engineering
            permission:
              type: string
              enum:
                - write
                - none
              description: Write access, or `none` to remove it
              example: write
        - type: object
          required:
            - keyId
            - permission
          properties:
            keyId:
              type: string
              description: >
                ID of an active, non-system API key of the workspace, as shown
                in its details in the workspace's API keys settings
              example: key_abc123
            permission:
              type: string
              enum:
                - write
                - none
              description: Write access, or `none` to remove it
              example: write
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Your DUST API key is a Bearer token.

````

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