{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/whatsapp/json-schema/whatsapp-update-qr-code-request-schema.json",
  "title": "UpdateQrCodeRequest",
  "description": "Request payload for updating an existing message QR code",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/whatsapp-qr-code-collection-api-openapi.yml#/components/schemas/UpdateQrCodeRequest",
  "type": "object",
  "required": [
    "code",
    "prefilled_message"
  ],
  "properties": {
    "code": {
      "type": "string",
      "description": "14-character QR code identifier to update",
      "pattern": "^[A-Z2-7]{14}$",
      "minLength": 14,
      "maxLength": 14
    },
    "prefilled_message": {
      "type": "string",
      "description": "New pre-filled message text (max 140 characters)",
      "maxLength": 140
    }
  }
}