Update account
Update account details, settings, and custom attributes
PATCH
/
api
/
v1
/
accounts
/
{account_id}
Update account
curl --request PATCH \
--url https://chat.wiseapp360.com/api/v1/accounts/{account_id} \
--header 'Content-Type: application/json' \
--header 'api_access_token: <api-key>' \
--data '
{
"name": "My Account",
"locale": "en",
"domain": "example.com",
"support_email": "support@example.com",
"auto_resolve_after": 1440,
"auto_resolve_message": "This conversation has been automatically resolved due to inactivity",
"auto_resolve_ignore_waiting": false,
"reporting_timezone": "America/Sao_Paulo",
"industry": "Technology",
"company_size": "50-100",
"timezone": "UTC"
}
'const options = {
method: 'PATCH',
headers: {api_access_token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'My Account',
locale: 'en',
domain: 'example.com',
support_email: 'support@example.com',
auto_resolve_after: 1440,
auto_resolve_message: 'This conversation has been automatically resolved due to inactivity',
auto_resolve_ignore_waiting: false,
reporting_timezone: 'America/Sao_Paulo',
industry: 'Technology',
company_size: '50-100',
timezone: 'UTC'
})
};
fetch('https://chat.wiseapp360.com/api/v1/accounts/{account_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://chat.wiseapp360.com/api/v1/accounts/{account_id}"
payload = {
"name": "My Account",
"locale": "en",
"domain": "example.com",
"support_email": "support@example.com",
"auto_resolve_after": 1440,
"auto_resolve_message": "This conversation has been automatically resolved due to inactivity",
"auto_resolve_ignore_waiting": False,
"reporting_timezone": "America/Sao_Paulo",
"industry": "Technology",
"company_size": "50-100",
"timezone": "UTC"
}
headers = {
"api_access_token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://chat.wiseapp360.com/api/v1/accounts/{account_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'My Account',
'locale' => 'en',
'domain' => 'example.com',
'support_email' => 'support@example.com',
'auto_resolve_after' => 1440,
'auto_resolve_message' => 'This conversation has been automatically resolved due to inactivity',
'auto_resolve_ignore_waiting' => false,
'reporting_timezone' => 'America/Sao_Paulo',
'industry' => 'Technology',
'company_size' => '50-100',
'timezone' => 'UTC'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"api_access_token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://chat.wiseapp360.com/api/v1/accounts/{account_id}"
payload := strings.NewReader("{\n \"name\": \"My Account\",\n \"locale\": \"en\",\n \"domain\": \"example.com\",\n \"support_email\": \"support@example.com\",\n \"auto_resolve_after\": 1440,\n \"auto_resolve_message\": \"This conversation has been automatically resolved due to inactivity\",\n \"auto_resolve_ignore_waiting\": false,\n \"reporting_timezone\": \"America/Sao_Paulo\",\n \"industry\": \"Technology\",\n \"company_size\": \"50-100\",\n \"timezone\": \"UTC\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("api_access_token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://chat.wiseapp360.com/api/v1/accounts/{account_id}")
.header("api_access_token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"My Account\",\n \"locale\": \"en\",\n \"domain\": \"example.com\",\n \"support_email\": \"support@example.com\",\n \"auto_resolve_after\": 1440,\n \"auto_resolve_message\": \"This conversation has been automatically resolved due to inactivity\",\n \"auto_resolve_ignore_waiting\": false,\n \"reporting_timezone\": \"America/Sao_Paulo\",\n \"industry\": \"Technology\",\n \"company_size\": \"50-100\",\n \"timezone\": \"UTC\"\n}")
.asString();{
"id": 1,
"name": "Sample resource",
"locale": "en",
"domain": "Sample text",
"support_email": "agent@example.com",
"status": "open",
"created_at": "2026-05-20T12:00:00Z",
"cache_keys": {
"source": "api",
"segment": "enterprise"
},
"features": {
"source": "api",
"segment": "enterprise"
},
"settings": {
"auto_resolve_after": 1,
"auto_resolve_message": "Sample text",
"auto_resolve_ignore_waiting": true,
"reporting_timezone": "2026-05-20T12:00:00Z"
},
"custom_attributes": {
"plan_name": "Sample resource",
"subscribed_quantity": 1,
"subscription_status": "open",
"subscription_ends_on": "Sample text",
"subscription_cancels_on": "Sample text",
"industry": "Sample text",
"company_size": "Sample text",
"timezone": "2026-05-20T12:00:00Z",
"logo": "Sample text",
"onboarding_step": "Sample text",
"marked_for_deletion_at": "2026-05-20T12:00:00Z",
"marked_for_deletion_reason": "Sample text"
}
}{
"error": "Unauthorized"
}{
"error": "Resource not found"
}{
"message": "Validation failed",
"attributes": [
"name cannot be blank"
]
}Autorizações
Corpo
application/jsonapplication/x-www-form-urlencoded
Resposta
Success
⌘I
Update account
curl --request PATCH \
--url https://chat.wiseapp360.com/api/v1/accounts/{account_id} \
--header 'Content-Type: application/json' \
--header 'api_access_token: <api-key>' \
--data '
{
"name": "My Account",
"locale": "en",
"domain": "example.com",
"support_email": "support@example.com",
"auto_resolve_after": 1440,
"auto_resolve_message": "This conversation has been automatically resolved due to inactivity",
"auto_resolve_ignore_waiting": false,
"reporting_timezone": "America/Sao_Paulo",
"industry": "Technology",
"company_size": "50-100",
"timezone": "UTC"
}
'const options = {
method: 'PATCH',
headers: {api_access_token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'My Account',
locale: 'en',
domain: 'example.com',
support_email: 'support@example.com',
auto_resolve_after: 1440,
auto_resolve_message: 'This conversation has been automatically resolved due to inactivity',
auto_resolve_ignore_waiting: false,
reporting_timezone: 'America/Sao_Paulo',
industry: 'Technology',
company_size: '50-100',
timezone: 'UTC'
})
};
fetch('https://chat.wiseapp360.com/api/v1/accounts/{account_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://chat.wiseapp360.com/api/v1/accounts/{account_id}"
payload = {
"name": "My Account",
"locale": "en",
"domain": "example.com",
"support_email": "support@example.com",
"auto_resolve_after": 1440,
"auto_resolve_message": "This conversation has been automatically resolved due to inactivity",
"auto_resolve_ignore_waiting": False,
"reporting_timezone": "America/Sao_Paulo",
"industry": "Technology",
"company_size": "50-100",
"timezone": "UTC"
}
headers = {
"api_access_token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://chat.wiseapp360.com/api/v1/accounts/{account_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'My Account',
'locale' => 'en',
'domain' => 'example.com',
'support_email' => 'support@example.com',
'auto_resolve_after' => 1440,
'auto_resolve_message' => 'This conversation has been automatically resolved due to inactivity',
'auto_resolve_ignore_waiting' => false,
'reporting_timezone' => 'America/Sao_Paulo',
'industry' => 'Technology',
'company_size' => '50-100',
'timezone' => 'UTC'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"api_access_token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://chat.wiseapp360.com/api/v1/accounts/{account_id}"
payload := strings.NewReader("{\n \"name\": \"My Account\",\n \"locale\": \"en\",\n \"domain\": \"example.com\",\n \"support_email\": \"support@example.com\",\n \"auto_resolve_after\": 1440,\n \"auto_resolve_message\": \"This conversation has been automatically resolved due to inactivity\",\n \"auto_resolve_ignore_waiting\": false,\n \"reporting_timezone\": \"America/Sao_Paulo\",\n \"industry\": \"Technology\",\n \"company_size\": \"50-100\",\n \"timezone\": \"UTC\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("api_access_token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://chat.wiseapp360.com/api/v1/accounts/{account_id}")
.header("api_access_token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"My Account\",\n \"locale\": \"en\",\n \"domain\": \"example.com\",\n \"support_email\": \"support@example.com\",\n \"auto_resolve_after\": 1440,\n \"auto_resolve_message\": \"This conversation has been automatically resolved due to inactivity\",\n \"auto_resolve_ignore_waiting\": false,\n \"reporting_timezone\": \"America/Sao_Paulo\",\n \"industry\": \"Technology\",\n \"company_size\": \"50-100\",\n \"timezone\": \"UTC\"\n}")
.asString();{
"id": 1,
"name": "Sample resource",
"locale": "en",
"domain": "Sample text",
"support_email": "agent@example.com",
"status": "open",
"created_at": "2026-05-20T12:00:00Z",
"cache_keys": {
"source": "api",
"segment": "enterprise"
},
"features": {
"source": "api",
"segment": "enterprise"
},
"settings": {
"auto_resolve_after": 1,
"auto_resolve_message": "Sample text",
"auto_resolve_ignore_waiting": true,
"reporting_timezone": "2026-05-20T12:00:00Z"
},
"custom_attributes": {
"plan_name": "Sample resource",
"subscribed_quantity": 1,
"subscription_status": "open",
"subscription_ends_on": "Sample text",
"subscription_cancels_on": "Sample text",
"industry": "Sample text",
"company_size": "Sample text",
"timezone": "2026-05-20T12:00:00Z",
"logo": "Sample text",
"onboarding_step": "Sample text",
"marked_for_deletion_at": "2026-05-20T12:00:00Z",
"marked_for_deletion_reason": "Sample text"
}
}{
"error": "Unauthorized"
}{
"error": "Resource not found"
}{
"message": "Validation failed",
"attributes": [
"name cannot be blank"
]
}