Audiences
AuthTokens
Brands
Inbound
Lists
Messages
Notifications
Profiles
Tenants
User Preferences
User Tenants
Tenants
Create or Replace a Tenant
PUT
/
tenants
/
{tenant_id}
Copy
Ask AI
curl --request PUT \
--url https://api.courier.com/tenants/{tenant_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"parent_tenant_id": "<string>",
"default_preferences": {
"items": [
{
"status": "OPTED_OUT",
"has_custom_routing": true,
"custom_routing": [
"direct_message"
],
"id": "<string>"
}
]
},
"properties": {},
"user_profile": {},
"brand_id": "<string>"
}'
Copy
Ask AI
{
"id": "<string>",
"name": "<string>",
"parent_tenant_id": "<string>",
"default_preferences": {
"items": [
{
"status": "OPTED_OUT",
"has_custom_routing": true,
"custom_routing": [
"direct_message"
],
"id": "<string>"
}
]
},
"properties": {},
"user_profile": {},
"brand_id": "<string>"
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
A unique identifier representing the tenant to be returned.
Body
application/json
Response
200
application/json
The response is of type object
.
Copy
Ask AI
curl --request PUT \
--url https://api.courier.com/tenants/{tenant_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"parent_tenant_id": "<string>",
"default_preferences": {
"items": [
{
"status": "OPTED_OUT",
"has_custom_routing": true,
"custom_routing": [
"direct_message"
],
"id": "<string>"
}
]
},
"properties": {},
"user_profile": {},
"brand_id": "<string>"
}'
Copy
Ask AI
{
"id": "<string>",
"name": "<string>",
"parent_tenant_id": "<string>",
"default_preferences": {
"items": [
{
"status": "OPTED_OUT",
"has_custom_routing": true,
"custom_routing": [
"direct_message"
],
"id": "<string>"
}
]
},
"properties": {},
"user_profile": {},
"brand_id": "<string>"
}
Assistant
Responses are generated using AI and may contain mistakes.