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

# التحديث

> PUT /qrcode/{qrid}/

يسترجع رمز QR واحدًا أو يحدّثه أو يحذفه على مضيف **Management API** (‏`management.scanova.io`)، مصادَقًا عليه بمفتاح Management API الخام الخاص بك.

```
GET    https://management.scanova.io/qrcode/{qrid}/
PUT    https://management.scanova.io/qrcode/{qrid}/
PATCH  https://management.scanova.io/qrcode/{qrid}/
DELETE https://management.scanova.io/qrcode/{qrid}/
Authorization: 401f7ac837da42b97f613d789819ff93537bee6a
```

<ParamField path="qrid" type="string" required>
  `qrid` الخاص برمز QR (مثل `QR7K9M2XN`) — المعرّف المقروء للبشر الذي تعيده [`GET /qr/`](/ar/api-reference/management-api/qr/list)، وليس `id` الرقمي.
</ParamField>

<Tip>
  نفس هذا العرض (view) متاح أيضًا عبر `/qr/{qrid}/` (أي تحت نفس بادئة المسار الخاصة بنقطة نهاية السرد/الإنشاء) — كلا المسارين يؤديان إلى نفس العرض والسلوك تمامًا. هذا المرجع يوثّق `/qrcode/{qrid}/` لأن هذا هو المسار الذي تم التحقق منه لمجموعة التوثيق هذه، لكن كلاهما يعمل.
</Tip>

كلٌّ من `PUT` و`PATCH` مدعومان (`PUT` لاستبدال كامل، و`PATCH` لتحديث جزئي) ويقبلان نفس مجموعة الحقول الموثّقة لـ [إنشاء رمز QR](/ar/api-reference/management-api/qr/create). التحديث الناجح يعيد `200 OK` مع تمثيل التفاصيل المحدَّث الموضح أعلاه.

<RequestExample>
  ```bash cURL theme={null}
  curl -X PATCH "https://management.scanova.io/qrcode/QR7K9M2XN/" \
    -H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a" \
    -H "Content-Type: application/json" \
    -d '{ "name": "Product launch flyer — v2" }'
  ```
</RequestExample>

## النطاق والأخطاء

كل طريقة هنا تعمل فقط على رموز QR المملوكة للحساب الذي يخصه المفتاح — طلب `qrid` لا تملكه (أو غير موجود) يعيد `404`، لا `403`، بحيث لا يمكنك استخدام نقطة النهاية هذه لاستكشاف وجود رموز QR تخص حسابات أخرى.

## ذات صلة

* [الاسترجاع](/ar/api-reference/management-api/qr/retrieve) — العملية الأخرى لنفس نقطة النهاية هذه.
* [الحذف](/ar/api-reference/management-api/qr/delete) — العملية الأخرى لنفس نقطة النهاية هذه.
* [سرد رموز QR](/ar/api-reference/management-api/qr/list) — ابحث عن `qrid` للعمل عليه هنا، أو مجموعة الحقول الكاملة التي يقبلها تحديث نقطة النهاية هذه.
* [إنشاء رمز QR](/ar/api-reference/management-api/qr/create) — ابحث عن `qrid` للعمل عليه هنا، أو مجموعة الحقول الكاملة التي يقبلها تحديث نقطة النهاية هذه.
* [تنزيل صورة رمز QR](/ar/api-reference/management-api/qr/download) — صيّر رمز QR هذا كملف صورة.
* [سرد رموز QR في سلة المهملات](/ar/api-reference/management-api/qr/trash) — إلى أين ينتهي رمز QR بعد استدعاء `DELETE` هنا.


## OpenAPI

````yaml api-reference/openapi/management-api.json PUT /qrcode/{qrid}/
openapi: 3.1.0
info:
  title: Scanova Management API (v2)
  description: >-
    The complete Scanova Management API — every endpoint available at
    management.scanova.io (QR codes, folders, tags, leads, forms, analytics,
    plans, shared users & roles), plus the token-creation and usage-stats
    endpoints used to authenticate against it. Every path and request/response
    shape below was verified live against a real API key and the actual running
    backend (Phase 7, 2026-08-16) — not guessed from reading urls.py alone.
  version: 2.0.0
servers:
  - url: https://management.scanova.io
    description: Management API — QR/folder/tag/lead/form/analytics/plans endpoints
security:
  - apiKeyAuth: []
paths:
  /qrcode/{qrid}/:
    put:
      summary: Update a QR code (full replace)
      operationId: updateManagedQrCode
      parameters:
        - name: qrid
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: QR code updated
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        Send your Management API key as the raw value of the Authorization
        header — no "Bearer " or "Token " prefix, and no other characters.
        Example: `Authorization: 401f7ac837da42b97f613d789819ff93537bee6a`. A
        header containing more than one space-separated part is rejected
        outright. Requests also require the request's Host header to be the
        management API host (e.g. management.scanova.io) — the same key sent to
        the regular API host will not authenticate.

````