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

# Set the default Slack workspace

> Makes the Slack workspace the default (every other one stops being it) and returns the workspaces. A Slack workspace not installed for this Statisfy workspace is a 404, and the default stays as it was.



## OpenAPI

````yaml /api/statisfy-api.openapi.json put /v1/integrations/slack/workspaces/default
openapi: 3.1.0
info:
  description: >-
    The agent-first Statisfy API. Authenticate with an API key (`Authorization:
    Bearer stfy_live_…`), then call `GET /v1/meta/capabilities` to discover
    every operation and its schemas.
  title: Statisfy API
  version: 1.0.0
servers:
  - url: https://api.statisfy.com
    description: Production
security: []
paths:
  /v1/integrations/slack/workspaces/default:
    put:
      tags:
        - integrations
      summary: Set the default Slack workspace
      description: >-
        Makes the Slack workspace the default (every other one stops being it)
        and returns the workspaces. A Slack workspace not installed for this
        Statisfy workspace is a 404, and the default stays as it was.
      operationId: integrations_slack_set_default_workspace
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                workspace_id:
                  description: >-
                    The Slack workspace's id (T…, or E… for an Enterprise Grid
                    install), as GET /workspaces returns it
                  maxLength: 32
                  pattern: ^[TE][A-Z0-9]+$
                  title: Workspace Id
                  type: string
              required:
                - workspace_id
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SlackWorkspaces'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    SlackWorkspaces:
      properties:
        workspaces:
          items:
            $ref: '#/components/schemas/SlackWorkspace'
          title: Workspaces
          type: array
      required:
        - workspaces
      title: SlackWorkspaces
      type: object
    SlackWorkspace:
      properties:
        app_id:
          anyOf:
            - type: string
            - type: 'null'
          description: The Slack app installed (Statisfy's, or its channel manager)
          title: App Id
        bot_avatar_url:
          anyOf:
            - type: string
            - type: 'null'
          description: 'The avatar Statisfy posts with, without its scheme; null: the app''s'
          title: Bot Avatar Url
        bot_display_name:
          anyOf:
            - type: string
            - type: 'null'
          description: 'The name Statisfy posts under here; null: the app''s name'
          title: Bot Display Name
        can_customize_sender:
          description: >-
            The install lets Statisfy post under the name and avatar below;
            false until it is reinstalled
          title: Can Customize Sender
          type: boolean
        installed_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Installed At
        is_default:
          description: Statisfy posts here when a call names no workspace
          title: Is Default
          type: boolean
        workspace_id:
          description: >-
            The Slack workspace's id (T…, or E… for an Enterprise Grid install),
            as GET /workspaces returns it
          title: Workspace Id
          type: string
        workspace_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Workspace Name
      required:
        - workspace_id
        - workspace_name
        - is_default
        - installed_at
        - app_id
        - can_customize_sender
        - bot_display_name
        - bot_avatar_url
      title: SlackWorkspace
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http
      description: >-
        An API key, sent as `Authorization: Bearer stfy_live_…`. See
        [Authentication](/rest-api/authentication) for how to get one and which
        scopes it needs.

````

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