---
title: "Update a token"
method: PATCH
path: "/users/{user_id}/tokens/{token}"
tags: ["Device Tokens"]
---

# Update a token

`PATCH /users/{user_id}/tokens/{token}`

Applies a JSON Patch to a device token, changing its status, expiry, or properties without re-registering it.

## Path parameters

- `user_id` string, required
- `token` string, required

## Request body

- UsersPatchUserTokenOpts
  - `patch` UsersPatchOperation[], required
    - `op` string, required — The operation to perform.
    - `path` string, required — The JSON path specifying the part of the profile to operate on.
    - `value` string, nullable — The value for the operation.

## Response `204`

## Other responses

- `400`

---

[API](https://skmtc.net/trycourier/apis/courier.md) · [All operations](https://skmtc.net/trycourier/apis/courier/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/trycourier/courier/versions/04f69fbf96a5/schema)
