Skip to main content
PUT
/
users
/
{user_id}
/
tenants
JavaScript
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.tenants.addMultiple('user_id', { tenants: [{ tenant_id: 'tenant_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

The user's ID. This can be any uniquely identifiable string.

Body

application/json
tenants
UserTenantAssociation ยท object[]
required

Response

204 - undefined