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

# Update Announcement



## OpenAPI

````yaml /openapi.json patch /api/v1/announcements/{announcement_id}
openapi: 3.1.0
info:
  description: >-
    Especificación pública de la API de ViVi. Incluye solo los endpoints del
    dominio de la práctica: agenda, pacientes, conversaciones, clínica y cuenta.
  title: ViVi
  version: 0.1.0
servers:
  - url: https://api.holavivi.app
security: []
tags:
  - name: Agenda
  - name: Pacientes
  - name: Conversaciones
  - name: Clínica
  - name: Cuenta y panel
paths:
  /api/v1/announcements/{announcement_id}:
    patch:
      tags:
        - Conversaciones
      summary: Update Announcement
      operationId: update_announcement_api_v1_announcements__announcement_id__patch
      parameters:
        - in: path
          name: announcement_id
          required: true
          schema:
            format: uuid
            title: Announcement Id
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AnnouncementIn'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                additionalProperties: true
                title: >-
                  Response Update Announcement Api V1 Announcements 
                  Announcement Id  Patch
                type: object
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - BearerAuth: []
components:
  schemas:
    AnnouncementIn:
      properties:
        audience_type:
          default: all_active
          enum:
            - all_active
            - group
            - selected
          title: Audience Type
          type: string
        channels:
          items:
            enum:
              - email
              - whatsapp
            type: string
          maxItems: 2
          minItems: 1
          title: Channels
          type: array
        content:
          additionalProperties:
            $ref: '#/components/schemas/ChannelContent'
          title: Content
          type: object
        group_id:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
          title: Group Id
        patient_ids:
          items:
            format: uuid
            type: string
          maxItems: 5000
          title: Patient Ids
          type: array
        title:
          maxLength: 160
          minLength: 1
          title: Title
          type: string
      required:
        - title
        - channels
        - content
      title: AnnouncementIn
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ChannelContent:
      properties:
        body:
          maxLength: 10000
          minLength: 1
          title: Body
          type: string
        subject:
          anyOf:
            - maxLength: 255
              type: string
            - type: 'null'
          title: Subject
      required:
        - body
      title: ChannelContent
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    BearerAuth:
      description: >-
        La credencial de sesión del consultorio o del paciente, o una clave API
        del consultorio, como token Bearer.
      scheme: bearer
      type: http

````

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