> ## Documentation Index
> Fetch the complete documentation index at: https://omniflow-vpn.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Put v1panelnotices

> Requires settings.write. Stores one body for one locale.
One locale at a time, deliberately: rewriting the English expiry warning decides nothing about the Russian one, and a document-shaped save would let this screen overwrite a translation somebody else was working on.
Refused with 422 when the body names a value the notice does not carry, uses markup Telegram does not accept, contains a stray `<`, links to anything but https, is blank, or exceeds 2000 characters. Every one of those would otherwise become a message that fails or looks broken at the customer, hours later, with nobody watching.
Values are named — `{days}`, `{plan}`, `{until}` — rather than format verbs. A `%d` that meets a string prints `%!d(string=Pro)` and does not fail, which is exactly the outcome an operator cannot be asked to guard against.



## OpenAPI

````yaml https://raw.githubusercontent.com/kewldan/omniflow/main/api/openapi.yaml put /v1/panel/notices/{code}
openapi: 3.0.3
info:
  title: Omniflow API
  version: 1.0.0
  description: >-
    Customer, commerce, payment, wallet, fulfillment, and operations API for
    Omniflow.
servers: []
security: []
paths:
  /v1/panel/notices/{code}:
    put:
      tags:
        - panel
      description: >-
        Requires settings.write. Stores one body for one locale.

        One locale at a time, deliberately: rewriting the English expiry warning
        decides nothing about the Russian one, and a document-shaped save would
        let this screen overwrite a translation somebody else was working on.

        Refused with 422 when the body names a value the notice does not carry,
        uses markup Telegram does not accept, contains a stray `<`, links to
        anything but https, is blank, or exceeds 2000 characters. Every one of
        those would otherwise become a message that fails or looks broken at the
        customer, hours later, with nobody watching.

        Values are named — `{days}`, `{plan}`, `{until}` — rather than format
        verbs. A `%d` that meets a string prints `%!d(string=Pro)` and does not
        fail, which is exactly the outcome an operator cannot be asked to guard
        against.
      operationId: savePanelNotice
      parameters:
        - in: path
          name: code
          required: true
          schema:
            type: string
        - $ref: '#/components/parameters/CSRFToken'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - locale
                - body
              properties:
                locale:
                  type: string
                  enum:
                    - en
                    - ru
                body:
                  type: string
                  maxLength: 2000
      responses:
        '200':
          description: Saved
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PanelNoticeOverride'
        '403':
          $ref: '#/components/responses/Problem'
        '422':
          $ref: '#/components/responses/Problem'
components:
  parameters:
    CSRFToken:
      in: header
      name: X-CSRF-Token
      required: true
      description: >-
        Echoes the token from the current session. Required on every unsafe
        method.
      schema:
        type: string
  schemas:
    PanelNoticeOverride:
      type: object
      required:
        - body
        - updatedAt
      properties:
        body:
          type: string
        updatedAt:
          type: string
          format: date-time
        updatedBy:
          type: string
          format: uuid
    Problem:
      type: object
      required:
        - type
        - title
        - status
      properties:
        type:
          type: string
          format: uri
        title:
          type: string
        status:
          type: integer
        detail:
          type: string
        request_id:
          type: string
  responses:
    Problem:
      description: Request failed
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'

````

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