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

# Share Campaign

> Updates campaign sharing settings. Pass explicit user ids in `usersIds` to share with specific teammates, or set `shareWithAllWorkspaceUsers=true` to make the campaign visible to the whole team — in that case pass an empty array for `usersIds`.



## OpenAPI

````yaml https://api.goextrovert.com/client/v2/docs-json post /client/v2/campaign/{campaignId}/share
openapi: 3.0.0
info:
  title: Extrovert Client API
  description: >-
    Public API for Extrovert platform integration. Use your API key for
    authentication.
  version: '1.0'
  contact: {}
servers:
  - url: https://api.goextrovert.com/
    description: API Server
security: []
tags: []
paths:
  /client/v2/campaign/{campaignId}/share:
    post:
      tags:
        - Campaigns
      summary: Share Campaign
      description: >-
        Updates campaign sharing settings. Pass explicit user ids in `usersIds`
        to share with specific teammates, or set
        `shareWithAllWorkspaceUsers=true` to make the campaign visible to the
        whole team — in that case pass an empty array for `usersIds`.
      operationId: CampaignClientApiController_share
      parameters:
        - name: campaignId
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ShareRequestDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ShareResponseDto'
        '401':
          description: Invalid or missing API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClientApiErrorResponseDto'
      security:
        - api-key: []
components:
  schemas:
    ShareRequestDto:
      type: object
      properties:
        campaignId:
          type: string
          format: uuid
          description: Campaign id whose sharing settings should be updated.
        usersIds:
          type: array
          items:
            type: string
            format: uuid
          description: >-
            Team member ids that should have access to the campaign. Pass an
            empty array when `shareWithAllWorkspaceUsers=true`.
        shareWithAllWorkspaceUsers:
          type: boolean
          description: Whether to share the campaign with all members of the team.
      required:
        - campaignId
        - usersIds
    ShareResponseDto:
      type: object
      properties:
        status:
          type: string
          description: Response status
          enum:
            - success
        data:
          description: No response payload
          nullable: true
          enum:
            - null
          example: null
        message:
          type: string
          description: Success message
          example: Operation completed successfully
      required:
        - status
        - data
        - message
    ClientApiErrorResponseDto:
      type: object
      properties:
        status:
          type: string
          description: Response status
          example: error
          enum:
            - error
        data:
          type: object
          description: Response data
          example: null
        message:
          type: string
          description: Error message
          example: An error occurred while processing the request
      required:
        - status
        - data
  securitySchemes:
    api-key:
      type: apiKey
      in: header
      name: X-API-Key
      description: API Key for authentication

````