Audiences
Audit Events
AuthTokens
Inbound
Lists
Messages
Notifications
Profiles
Tenants
Translations
User Preferences
User Tenants
User Tenants
Add a user to multiple tenants
PUT
/
users
/
{user_id}
/
tenants
curl --request PUT \
--url https://api.courier.com/users/{user_id}/tenants \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"tenants": [
{
"user_id": "<string>",
"type": "user",
"tenant_id": "<string>",
"profile": {}
}
]
}'
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
The user's ID. This can be any uniquely identifiable string.
Body
application/json
Tenant ID for the assocation between tenant and user
User ID for the assocation between tenant and user
Available options:
user
Additional metadata to be applied to a user profile when used in a tenant context
curl --request PUT \
--url https://api.courier.com/users/{user_id}/tenants \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"tenants": [
{
"user_id": "<string>",
"type": "user",
"tenant_id": "<string>",
"profile": {}
}
]
}'