---
title: "Update a device subscription"
method: PATCH
path: "/api/v1/visa/devices/{id}"
tags: ["Push notifications"]
---

# Update a device subscription

`PATCH /api/v1/visa/devices/{id}`

At least one field is required.

## Request body

- DeviceUpdateBody — At least one property required.
  - `passport_iso3` string — ISO 3166-1 alpha-3 country code.
  - `wishlist_iso3` ISO3[]
  - `locale` string
  - `tz` string
  - `premium` boolean
  - `preferences` DevicePreferences
    - `instant` boolean
    - `digest_weekly` boolean
    - `only_wishlist` boolean
    - `only_positive` boolean

## Response `200`

Subscription updated.

- object
  - `updated` boolean
  - `device_id` integer

## Other responses

- `400` — Missing or malformed parameter.
- `401` — Missing API key, query param or session cookie.
- `403` — Invalid / inactive key, or plan below the endpoint's minimum tier.
- `404` — No data for the requested resource.

---

[API](https://skmtc.net/orizn/apis/orizn-visa-api.md) · [All operations](https://skmtc.net/orizn/apis/orizn-visa-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/orizn/orizn-visa-api/versions/15b21ef9b5b0/schema)
