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.profiles.update('user_id', {
patch: [
{
op: 'op',
path: 'path',
value: 'value',
},
],
});
User Profiles
Update a profile
PATCH
/
profiles
/
{user_id}
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.profiles.update('user_id', {
patch: [
{
op: 'op',
path: 'path',
value: 'value',
},
],
});