---
title: "Update a QR code (label, trial_days, max_scans, is_active)"
method: PATCH
path: "/api/admin/agents/{agentId}/qr-codes/{qrCodeId}"
tags: ["Admin"]
---

# Update a QR code (label, trial_days, max_scans, is_active)

`PATCH /api/admin/agents/{agentId}/qr-codes/{qrCodeId}`

## Request

- Base URL: `https://api.rewritelifestyle.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.rewritelifestyle.ai/api/admin/agents/{agentId}/qr-codes/{qrCodeId}`
- Auth: HTTP bearer

## Path parameters

- `agentId` string, required
- `qrCodeId` string, required

## Request body

- UpdateAgentQrCodeDto
  - `label` string
  - `trial_days` number
  - `max_scans` number
  - `is_active` boolean

## Response `200`

---

[API](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api.md) - [All operations](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/revisions/28695827f27a?raw)
