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

# Update a message

> Updates a message's sender (`from` and `reply_to`) and `active` flag on a draft broadcast. 
Changes to the sender attributes apply across all of the message's contents. The control
and the last remaining active message cannot be deactivated. `name`,
`position`, and `test_name` are derived and are rejected with `422`.




## OpenAPI

````yaml /api-reference/campaigns-v2/campaigns-v2.yaml patch /broadcasts/{broadcast_id}/messages/{id}
openapi: 3.0.3
info:
  title: Vero Open API v2
  version: 2.0.0
  description: >
    OpenAPI description for the API key-authenticated `api/v2` campaign and

    broadcast endpoints.


    Authentication uses the `Authorization` header. Both of these forms are
    accepted:


    - `Authorization: sk_valid_123`

    - `Authorization: Bearer sk_valid_123`

    - `revision: 2026-03-01`


    Campaign read endpoints require the `campaign:read` permission, and campaign

    write endpoints require the `campaign:write` permission.


    Broadcast read endpoints require the `broadcast:read` permission. A
    broadcast

    is a one-off or recurring message sent to an audience.
servers:
  - url: https://api.getvero.com/api/v2
security:
  - ApiKeyAuth: []
tags:
  - name: Broadcasts
  - name: Broadcast Messages
  - name: Broadcast Message Contents
  - name: Journeys
  - name: Journey Messages
  - name: Journey Message Contents
  - name: Campaigns
  - name: Campaign Messages
  - name: Campaign Message Contents
paths:
  /broadcasts/{broadcast_id}/messages/{id}:
    patch:
      tags:
        - Broadcast Messages
      summary: Update a message
      description: >
        Updates a message's sender (`from` and `reply_to`) and `active` flag on
        a draft broadcast. 

        Changes to the sender attributes apply across all of the message's
        contents. The control

        and the last remaining active message cannot be deactivated. `name`,

        `position`, and `test_name` are derived and are rejected with `422`.
      operationId: updateBroadcastMessage
      parameters:
        - name: broadcast_id
          in: path
          required: true
          description: Broadcast ID.
          schema:
            type: integer
        - name: id
          in: path
          required: true
          description: Message ID.
          schema:
            type: integer
        - name: revision
          in: header
          required: false
          description: >-
            Optional dated API revision for the request. Must use `YYYY-MM-DD`
            format.
          schema:
            type: string
            pattern: ^\d{4}-\d{2}-\d{2}$
            example: '2026-03-01'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateBroadcastMessageRequest'
            examples:
              sender:
                summary: Change the sender
                value:
                  from: promo@acme.com
                  reply_to: replies@acme.com
              deactivate:
                summary: Deactivate an arm
                value:
                  active: false
        required: true
      responses:
        '200':
          description: Sender updated across every content.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BroadcastMessage'
        '409':
          description: The control message cannot be deactivated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorList'
        '422':
          description: Unverified sender is rejected.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorList'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    UpdateBroadcastMessageRequest:
      type: object
      description: >
        Update a message's sender (`from`/`reply_to`, applied across every one
        of

        the message's contents) and `active` flag on a draft broadcast. The
        control

        and the last remaining active message cannot be deactivated (`409`).

        `name`, `position`, and `test_name` are derived and rejected with `422`.
      properties:
        from:
          type: string
          nullable: true
          description: >-
            Sender email address (email channel only). Must be a verified
            sender.
        reply_to:
          type: string
          nullable: true
        active:
          type: boolean
      additionalProperties: false
    BroadcastMessage:
      type: object
      description: |
        One message (A/B test arm) of a broadcast. `from`/`reply_to` are
        email-only sender fields and are `null` for SMS/push messages.
      required:
        - id
        - broadcast_id
        - position
        - name
        - active
        - from
        - reply_to
        - created_at
        - updated_at
      properties:
        id:
          type: integer
        broadcast_id:
          type: integer
        position:
          type: integer
        name:
          type: string
          nullable: true
          description: >-
            Server-generated message name, for example `Control` or `Variation
            A`.
        active:
          type: boolean
        from:
          type: string
          nullable: true
          description: Sender email address (email messages only).
        reply_to:
          type: string
          nullable: true
          description: Reply-to email address (email messages only).
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    ErrorList:
      type: object
      required:
        - errors
      properties:
        errors:
          type: array
          items:
            type: object
            required:
              - message
            properties:
              message:
                type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: Accepts either a raw API key or `Bearer <key>`.

````