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

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

await client.users.tenants.addSingle('tenant_id', { user_id: 'user_id' });

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

Id of the user to be added to the supplied tenant.

tenant_id
string
required

Id of the tenant the user should be added to.

Body

application/json
profile
object | null