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

# Update SMS program

> Update program details. Only allowed when status is draft.



## OpenAPI

````yaml /openapi.json put /api/sms-programs/{id}
openapi: 3.0.0
info:
  title: GoMobile Backend API
  description: >-
    API documentation for GoMobile telephony platform - automated calling
    campaigns, interactive voice flows, and call management
  version: '1.0'
  contact: {}
servers:
  - url: http://localhost:3000
    description: Local Development
security: []
tags:
  - name: Organizations
    description: Multi-tenant organization management
  - name: Teams
    description: Team structure and hierarchy
  - name: Contacts
    description: Customer contact management (CRM)
  - name: Entities
    description: Business entities management
  - name: Audiences
    description: Contact segmentation and groups
  - name: Programs
    description: Call campaign configuration
  - name: Call Flows
    description: Interactive call flow builder
paths:
  /api/sms-programs/{id}:
    put:
      tags:
        - SMS Programs
      summary: Update SMS program
      description: Update program details. Only allowed when status is draft.
      operationId: SmsProgramController_update
      parameters:
        - name: id
          required: true
          in: path
          description: SMS Program UUID
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateSmsProgramDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SmsProgramResponseDto'
        '400':
          description: Cannot update - invalid status
        '404':
          description: SMS Program not found
components:
  schemas:
    UpdateSmsProgramDto:
      type: object
      properties: {}
    SmsProgramResponseDto:
      type: object
      properties:
        senderId:
          type: string
          description: Sender ID UUID
        resolvedSenderId:
          nullable: true
          allOf:
            - $ref: '#/components/schemas/SenderIdDetailDto'
      required:
        - senderId
        - resolvedSenderId
    SenderIdDetailDto:
      type: object
      properties:
        id:
          type: string
          example: 123e4567-e89b-12d3-a456-426614174000
        senderId:
          type: string
          example: GoMobile
        country:
          type: string
          example: MA
      required:
        - id
        - senderId
        - country

````