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

# Upsert Slack app config

> Creates or updates the project's Slack app configuration. Partial — omitted fields are preserved on update. Validates `enabledFeatures` against the FEATURE_CATALOG. The OAuth proxy calls this after `apps.manifest.create` returns credentials, and may call it again to rotate credentials. NEVER pass a Slack config token (xoxe.xoxp-…) here — that's a workspace-admin credential and must not be persisted.



## OpenAPI

````yaml https://spectrum.photon.codes/openapi/json put /projects/{projectId}/slack/
openapi: 3.1.0
info:
  title: Spectrum Cloud External API
  description: Client-facing API for Spectrum Cloud.
  version: 1.0.0
servers:
  - url: https://spectrum.photon.codes
security: []
tags:
  - name: billing
    description: Billing and subscription operations
  - name: imessage
    description: iMessage platform operations
  - name: lines
    description: Phone line enumeration across platforms
  - name: platforms
    description: Platform management operations
  - name: users
    description: User operations
  - name: voice
    description: Voice platform operations
  - name: webhooks
    description: Webhook registration for receiving Spectrum events
  - name: whatsapp-business
    description: WhatsApp Business platform operations
  - name: slack
    description: Slack platform operations
paths:
  /projects/{projectId}/slack/:
    put:
      tags:
        - slack
      summary: Upsert Slack app config
      description: >-
        Creates or updates the project's Slack app configuration. Partial —
        omitted fields are preserved on update. Validates `enabledFeatures`
        against the FEATURE_CATALOG. The OAuth proxy calls this after
        `apps.manifest.create` returns credentials, and may call it again to
        rotate credentials. NEVER pass a Slack config token (xoxe.xoxp-…) here —
        that's a workspace-admin credential and must not be persisted.
      operationId: putProjectsByProjectIdSlack
      parameters:
        - name: projectId
          in: path
          required: true
          schema:
            type: string
            format: uuid
            pattern: >-
              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                enabledFeatures:
                  type: array
                  items:
                    type: string
                clientId:
                  type: string
                  minLength: 1
                clientSecret:
                  type: string
                  minLength: 1
                signingSecret:
                  type: string
                  minLength: 1
                appId:
                  type: string
                  minLength: 1
              additionalProperties: false
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                enabledFeatures:
                  type: array
                  items:
                    type: string
                clientId:
                  type: string
                  minLength: 1
                clientSecret:
                  type: string
                  minLength: 1
                signingSecret:
                  type: string
                  minLength: 1
                appId:
                  type: string
                  minLength: 1
              additionalProperties: false
          multipart/form-data:
            schema:
              type: object
              properties:
                enabledFeatures:
                  type: array
                  items:
                    type: string
                clientId:
                  type: string
                  minLength: 1
                clientSecret:
                  type: string
                  minLength: 1
                signingSecret:
                  type: string
                  minLength: 1
                appId:
                  type: string
                  minLength: 1
              additionalProperties: false
      responses:
        '200':
          description: Response for status 200
          content:
            application/json:
              schema:
                type: object
                properties:
                  succeed:
                    type: boolean
                    const: true
                  data:
                    type: object
                    properties:
                      appConfigId:
                        type: string
                      projectId:
                        type: string
                      enabledFeatures:
                        type: array
                        items:
                          type: string
                      clientId:
                        anyOf:
                          - type: string
                          - type: 'null'
                      clientSecret:
                        anyOf:
                          - type: string
                          - type: 'null'
                      signingSecret:
                        anyOf:
                          - type: string
                          - type: 'null'
                      appId:
                        anyOf:
                          - type: string
                          - type: 'null'
                      installationCount:
                        type: integer
                        minimum: 0
                        maximum: 9007199254740991
                      createdAt:
                        type: string
                      updatedAt:
                        type: string
                    required:
                      - appConfigId
                      - projectId
                      - enabledFeatures
                      - clientId
                      - clientSecret
                      - signingSecret
                      - appId
                      - installationCount
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                required:
                  - succeed
                  - data
                additionalProperties: false

````