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

# Replace the app's slash commands



## OpenAPI

````yaml /api/openapi.yaml put /app/commands
openapi: 3.1.0
info:
  title: SigmaChat API
  version: '1'
  description: |
    The REST surface for SigmaChat apps and bots. Authenticate every
    request with a bot token in the Authorization header. Every response
    carries X-RateLimit-Limit, X-RateLimit-Remaining, and
    X-RateLimit-Reset; errors use a stable envelope
    `{ "error": { "code": "..." } }`.
servers:
  - url: https://sigmachat.org/api/v1
security:
  - botToken: []
paths:
  /app/commands:
    put:
      summary: Replace the app's slash commands
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: array
              items:
                $ref: '#/components/schemas/Command'
      responses:
        '200':
          description: The commands as stored.
components:
  schemas:
    Command:
      type: object
      properties:
        name:
          type: string
        description:
          type: string
        options:
          type: array
          items:
            type: object
  securitySchemes:
    botToken:
      type: http
      scheme: bearer
      description: An app token from the in-app developer settings.

````