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

# Update a Platform Banner

> Update a platform banner by ID



## OpenAPI

````yaml /openapi/platform.json put /platform/api/v1/platform_banners/{id}
openapi: 3.1.0
info:
  title: WiseApp API — Plataforma
  description: >-
    Referência completa da API do WiseApp: plataforma (provisionamento),
    aplicação (conta), cliente (canais públicos) e MCP.
  version: 1.1.0
servers:
  - url: https://chat.wiseapp360.com
    description: Sua instalação WiseApp
security: []
paths:
  /platform/api/v1/platform_banners/{id}:
    parameters:
      - $ref: '#/components/parameters/platform_banner_id'
        schema:
          type: string
        example: sample
    put:
      tags:
        - Platform Banners
      summary: Update a Platform Banner
      description: Update a platform banner by ID
      operationId: update-a-platform-banner
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/platform_banner_create_update_payload'
            example:
              title: Maintenance scheduled
              content: >-
                We will have scheduled maintenance on **Friday**. [Check our
                status page](https://status.example.com)
              banner_type: info
              active: true
              starts_at: '2026-05-20T12:00:00Z'
              ends_at: '2026-05-20T12:00:00Z'
              status_url: https://example.com/resource
              video_url: https://example.com/resource
              target_accounts:
                - Sample text
              target_user_roles: all_users
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/platform_banner'
              example:
                id: 1
                title: Sample resource
                content: Sample text
                formatted_content: Sample text
                banner_type: info
                active: true
                starts_at: '2026-05-20T12:00:00Z'
                ends_at: '2026-05-20T12:00:00Z'
                status_url: https://example.com/resource
                video_url: https://example.com/resource
                media_type: image
                target_accounts:
                  - Sample text
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/bad_request_error'
              example:
                error: Unauthorized
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
              example:
                error: Resource not found
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/bad_request_error'
              example:
                message: Validation failed
                attributes:
                  - name cannot be blank
      security:
        - platformAppApiKey: []
components:
  parameters:
    platform_banner_id:
      name: id
      in: path
      required: true
      description: The ID of the platform banner
      schema:
        type: integer
      example: 1
  schemas:
    platform_banner_create_update_payload:
      type: object
      required:
        - title
        - content
      properties:
        title:
          type: string
          description: The title of the banner
          example: Maintenance scheduled
        content:
          type: string
          description: >-
            The content of the banner. Supports markdown: **bold**, *italic*,
            [link](url)
          example: >-
            We will have scheduled maintenance on **Friday**. [Check our status
            page](https://status.example.com)
        banner_type:
          type: string
          enum:
            - info
            - warning
            - error
            - success
            - feature_announcement
          default: info
          description: >-
            The type/severity of the banner. feature_announcement opens as a
            panel with a video over the dashboard instead of the banner bar
        active:
          type: boolean
          default: true
          description: Whether the banner is active
        starts_at:
          type: string
          format: date-time
          description: When to start showing the banner (null = immediately)
        ends_at:
          type: string
          format: date-time
          description: When to stop showing the banner (null = indefinitely)
        status_url:
          type: string
          description: Optional URL to a status page
        video_url:
          type: string
          description: >-
            Image or video of a feature announcement (required when banner_type
            is feature_announcement): a YouTube, Vimeo, Loom, Arcade, Bunny,
            Guidejar or CodePen link, or the link of an image or video file
        target_accounts:
          type: array
          items:
            type: string
          description: >-
            List of account IDs (as strings) to show the banner to (empty = all
            accounts)
        target_user_roles:
          type: string
          enum:
            - all_users
            - admin_only
          default: all_users
          description: Which user roles can see the banner
    platform_banner:
      type: object
      properties:
        id:
          type: integer
          description: ID of the platform banner
        title:
          type: string
          description: The title of the banner
        content:
          type: string
          description: The raw content of the banner (supports markdown)
        formatted_content:
          type: string
          description: The HTML formatted content of the banner
        banner_type:
          type: string
          enum:
            - info
            - warning
            - error
            - success
            - feature_announcement
          description: >-
            The type/severity of the banner. feature_announcement opens as a
            panel with a video over the dashboard instead of the banner bar
        active:
          type: boolean
          description: Whether the banner is active
        starts_at:
          type: string
          format: date-time
          description: When to start showing the banner (null = immediately)
        ends_at:
          type: string
          format: date-time
          description: When to stop showing the banner (null = indefinitely)
        status_url:
          type: string
          description: Optional URL to a status page
        video_url:
          type: string
          description: >-
            Image or video of a feature announcement (required when banner_type
            is feature_announcement): a YouTube, Vimeo, Loom, Arcade, Bunny,
            Guidejar or CodePen link, or the link of an image or video file
        media_type:
          type: string
          enum:
            - image
            - video
          nullable: true
          description: What video_url shows (read-only)
        target_accounts:
          type: array
          items:
            type: string
          description: List of account IDs to show the banner to (empty = all accounts)
        target_user_roles:
          type: string
          enum:
            - all_users
            - admin_only
          description: Which user roles can see the banner
        created_at:
          type: string
          format: date-time
          description: When the banner was created
        updated_at:
          type: string
          format: date-time
          description: When the banner was last updated
    bad_request_error:
      title: data
      type: object
      properties:
        description:
          type: string
        errors:
          type: array
          items:
            $ref: '#/components/schemas/request_error'
    request_error:
      type: object
      properties:
        field:
          type: string
        message:
          type: string
        code:
          type: string
  securitySchemes:
    platformAppApiKey:
      type: apiKey
      in: header
      name: api_access_token
      description: >-
        Token de um Platform App, gerado pelo super admin. Usado para
        provisionar contas, usuários, papéis e bots.

````

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