import Courier from '@trycourier/courier';const client = new Courier({ apiKey: process.env['COURIER_API_KEY'], // This is the default and can be omitted});await client.users.tokens.update('token', { user_id: 'user_id', patch: [{ op: 'op', path: 'path' }] });
Apply a JSON Patch (RFC 6902) to the specified token.
PATCH
/
users
/
{user_id}
/
tokens
/
{token}
JavaScript
Copy
Ask AI
import Courier from '@trycourier/courier';const client = new Courier({ apiKey: process.env['COURIER_API_KEY'], // This is the default and can be omitted});await client.users.tokens.update('token', { user_id: 'user_id', patch: [{ op: 'op', path: 'path' }] });