> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zonely.gen.tr/llms.txt
> Use this file to discover all available pages before exploring further.

# 对用户实施制裁

> 请为用户操作请求应用制裁的 URL 和参数 。

```http theme={"theme":"css-variables"}
POST /Files/Controllers/ControllersAll.php?main=Banneds&container=BannedsAddController
```

[Penalties](https://docs.zonely.gen.tr/zh-CN/developers/modules/penalties)


## OpenAPI

````yaml api-specs/banneds-bannedsaddcontroller.json POST /Files/Controllers/ControllersAll.php
openapi: 3.1.0
info:
  title: Kullanıcıya yaptırım uygula
  version: '2026-10-27'
  description: Kullanıcıya yaptırım uygula işleminin istek ve yanıt alanları.
servers:
  - url: https://example.com
    description: Örnek alan adı — kendi Zonely kurulumunuzla değiştirin
security: []
paths:
  /Files/Controllers/ControllersAll.php:
    post:
      summary: Kullanıcıya yaptırım uygula
      description: >-
        Yaptırım türünü önce yönetim ekranından doğrula. 23 örnek kullanıcı
        kimliğidir; gerçek hesap kimliğini seçmeden isteği çalıştırma.
      operationId: Banneds_BannedsAddController
      parameters:
        - name: main
          in: query
          required: true
          schema:
            type: string
            enum:
              - Banneds
            default: Banneds
          example: Banneds
          description: Bu işlemin modülü.
        - name: container
          in: query
          required: true
          schema:
            type: string
            enum:
              - BannedsAddController
            default: BannedsAddController
          example: BannedsAddController
          description: Modülle birlikte gönderilecek işlem adı.
      requestBody:
        required: true
        description: İstek alanı.
        content:
          multipart/form-data:
            schema:
              title: Kullanıcıya yaptırım uygula
              type: object
              properties:
                user:
                  type: string
                  description: Yaptırım uygulanacak kullanıcı kimliği
                bannedReason:
                  type: string
                  description: Gerekçe
                method:
                  type: string
                  description: >-
                    Yaptırım türü; 1: normal engel, 4: normal susturma, 7:
                    normal uyarı
                durationStatus:
                  type: string
                  description: '0: kalıcı; 1: süreli'
                duration:
                  type: string
                  description: Süreli işlem seçildiğinde örneğin 10m
              required: []
              additionalProperties: true
              examples:
                - user: '23'
                  bannedReason: Kuralların ihlali
                  method: '7'
                  durationStatus: '0'
                  insertBanneds: OTURUM_FORMUNUN_CSRF_DEGERI
      responses:
        '200':
          description: İşlem controller'ının yanıtı.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '302':
          description: Oturum veya güvenlik katmanı yönlendirmesi olabilir.
        '401':
          description: Oturum doğrulaması gerekli olabilir.
        '403':
          description: İstek alanı.
      security:
        - {}
        - ApiKey: []
      x-codeSamples:
        - lang: bash
          label: cURL
          source: |-
            curl --request POST \
              --url "https://siteadresiniz.example/Files/Controllers/ControllersAll.php?main=Banneds&container=BannedsAddController" \
              --header "X-API-Key: $ZONELY_API_KEY" \
              --form 'user=ALAN_DEGERI' \
              --form 'bannedReason=ALAN_DEGERI' \
              --form 'method=ALAN_DEGERI' \
              --form 'durationStatus=ALAN_DEGERI' \
              --form 'duration=ALAN_DEGERI'
components:
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: Yönetim panelindeki API anahtarınız.

````

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