> ## 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 v1panelrisksources

> Requires risk.write. The URL must be HTTPS: plain HTTP would let anyone on the path decide who this installation refuses to serve.



## OpenAPI

````yaml https://raw.githubusercontent.com/kewldan/omniflow/main/api/openapi.yaml put /v1/panel/risk/sources
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/risk/sources:
    put:
      tags:
        - panel
      description: >-
        Requires risk.write. The URL must be HTTPS: plain HTTP would let anyone
        on the path decide who this installation refuses to serve.
      operationId: savePanelBlocklistSource
      parameters:
        - $ref: '#/components/parameters/CSRFToken'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PanelBlocklistSourceInput'
      responses:
        '200':
          description: Saved
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PanelBlocklistSource'
        '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:
    PanelBlocklistSourceInput:
      type: object
      required:
        - slug
        - displayName
        - subjectKind
        - url
        - enabled
        - refreshIntervalSeconds
      properties:
        slug:
          type: string
        displayName:
          type: string
        subjectKind:
          type: string
          enum:
            - telegram_id
            - email
            - username
        url:
          type: string
          pattern: ^https://
        authHeader:
          type: string
          nullable: true
          description: Omit or send null to keep the stored credential.
        enabled:
          type: boolean
        refreshIntervalSeconds:
          type: integer
          format: int64
          minimum: 300
    PanelBlocklistSource:
      type: object
      required:
        - id
        - slug
        - displayName
        - subjectKind
        - url
        - authConfigured
        - enabled
        - refreshIntervalSeconds
        - entryCount
        - status
        - nextRefreshAt
      properties:
        id:
          type: string
          format: uuid
        slug:
          type: string
        displayName:
          type: string
        subjectKind:
          type: string
          enum:
            - telegram_id
            - email
            - username
        url:
          type: string
        authConfigured:
          type: boolean
        enabled:
          type: boolean
        refreshIntervalSeconds:
          type: integer
          format: int64
        entryCount:
          type: integer
        status:
          type: string
          enum:
            - pending
            - healthy
            - failing
        lastErrorCode:
          type: string
        lastRefreshAt:
          type: string
          format: date-time
        nextRefreshAt:
          type: string
          format: date-time
    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.