Pular para o conteúdo

Tenant API

UpdateTenant

POST/tenantApiUpdateTenant

Formato: application/json.

{
"identity": "07122989674",
"status": "active",
"maxUsers": 100,
"maxConnections": 10,
"paymentGateway": "asaas",
"supportChatEnabled": "enabled",
"menuVisibility": [
"Groups",
"MassDispatch",
"Kanban",
"Tasks",
"Api",
"ChatBot",
"Reports",
"Campaigns",
"PrivateChat",
"Teams",
"AllowedChannels"
],
"allowedChannels": [
"waba",
"telegram",
"hub",
"webchat",
"mercadolivre",
"olx",
"linkedin",
"youtube",
"tiktok",
"woocommerce",
"nuvemshop",
"webmail",
"email",
"waba_oauth",
"dialog360",
"gupshup",
"instagram_oauth",
"facebook_oauth"
],
"channelConnectionLimits": {
"waba": 0,
"waba_oauth": 0,
"instagram_oauth": 0,
"facebook_oauth": 0,
"hub": 0,
"telegram": 0,
"webchat": 0,
"webmail": 0
},
"oauthEnabled": false,
"oauthProxyUrl": "https://proxy.exemplo.com/oauth",
"instagramWebhookProxyUrl": "https://proxy.exemplo.com/instagram/webhook",
"instagramWebhookProxySecret": "secret_instagram",
"messengerWebhookProxyUrl": "https://proxy.exemplo.com/messenger/webhook",
"messengerWebhookProxySecret": "secret_messenger"
}
Janela do terminal
curl --request POST \
--url 'https://api.seudominio.com.br/tenantApiUpdateTenant' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"identity": "07122989674",
"status": "active",
"maxUsers": 100,
"maxConnections": 10,
"paymentGateway": "asaas",
"supportChatEnabled": "enabled",
"menuVisibility": [
"Groups",
"MassDispatch",
"Kanban",
"Tasks",
"Api",
"ChatBot",
"Reports",
"Campaigns",
"PrivateChat",
"Teams",
"AllowedChannels"
],
"allowedChannels": [
"waba",
"telegram",
"hub",
"webchat",
"mercadolivre",
"olx",
"linkedin",
"youtube",
"tiktok",
"woocommerce",
"nuvemshop",
"webmail",
"email",
"waba_oauth",
"dialog360",
"gupshup",
"instagram_oauth",
"facebook_oauth"
],
"channelConnectionLimits": {
"waba": 0,
"waba_oauth": 0,
"instagram_oauth": 0,
"facebook_oauth": 0,
"hub": 0,
"telegram": 0,
"webchat": 0,
"webmail": 0
},
"oauthEnabled": false,
"oauthProxyUrl": "https://proxy.exemplo.com/oauth",
"instagramWebhookProxyUrl": "https://proxy.exemplo.com/instagram/webhook",
"instagramWebhookProxySecret": "secret_instagram",
"messengerWebhookProxyUrl": "https://proxy.exemplo.com/messenger/webhook",
"messengerWebhookProxySecret": "secret_messenger"
}'
  • 200: Requisição processada com sucesso.
  • 401: Token ausente, inválido ou sem permissão.
  • 400: Parâmetros inválidos ou faltando.