# updateCode

Updates a QR code of the current account: enables or disables it, or attaches it to another point of sale. An unknown code fails with the error `Account code not found`. Arguments: - `input`: ID of the code and the fields to change.

```
updateCode(

  input: UpdateCodeInput!

): Code!
```

### Arguments[​](#arguments "Enlace directo al Arguments")

#### [`updateCode.input`](#input) ● [`UpdateCodeInput!`](https://docs.monei.com/es/apis/graphql/types/inputs/update-code-input.md) non-null input[​](#input "Enlace directo al input")

### Type[​](#type "Enlace directo al Type")

#### [`Code`](https://docs.monei.com/es/apis/graphql/types/objects/code.md) object[​](#code- "Enlace directo al code-")

QR code of a point of sale (the QR Codes table of a point of sale in the dashboard). Its permalink, shown as Permalink, is `https://secure.monei.com/codes/{id}`, on the account's custom domain when it has one; the dashboard shows the short link instead when one exists (see `ShortLink`). A scan opens the payment flow of the point of sale: see `PointOfSale.fixedAmount`, `PointOfSale.manualAmount` and `PointOfSale.currentPaymentId`. The QR image is at `https://secure.monei.com/codes/{id}/qr`, with the query parameters `format` (`png` or `svg`, default `png`) and `size` (100 to 1000 pixels, default 500). An OAuth app does not see the codes of a point of sale whose `transactionType` is `PAYOUT` and cannot register or update them, except on a test account.
