Skip to main content
PUT
/
profiles
/
{user_id}
JavaScript
import Courier from '@trycourier/courier';

const client = new Courier({
  apiKey: 'My API Key',
});

const response = await client.profiles.replace('user_id', { profile: { foo: 'bar' } });

console.log(response.status);
{
  "status": "SUCCESS"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

user_id
string
required

A unique identifier representing the user associated with the requested user profile.

Body

application/json
profile
object
required

Response

status
enum<string>
required
Available options:
SUCCESS